Skip to content
Snippets Groups Projects
Commit 8c57cadb authored by Jamie Bainbridge's avatar Jamie Bainbridge Committed by Scott Lahteine
Browse files

Include stdlib in fontutils (#11251)


When `REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER` is defined and Re-ARM build is attempted, `u8g_fontutf8.cpp` includes `fontutils.h` which uses `abs()`.

However, `abs()` is defined in `stdlib.h` which is not included in `fontutils.h`, so compile fails with an error.

Include `stdlib.h` in `fontutils.h` so that `abs()` is defined before `u8g_fontutf8.cpp` needs to use it, resolving the compile error.

Signed-off-by: default avatarJamie Bainbridge <jamie.bainbridge@gmail.com>
parent fed68f29
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment