Clone in a terminal:
Commit 51a688b
Jasper Lievisse Adriaanse - 2015-12-20T08:29:24+00:00
51a688beb46211a6d3ce04d09e851723c8f4c504jasper@humppa.nl

Use the right header to get malloc(3) it seems only linux doesn't have malloc(3) defined in stdlib.h, even though this is required by POSIX. On OS X malloc(3) lives in stdlib.h, and only the special functions such as malloc_size(3) are defined in malloc/malloc.h.

Changed files (1)

Diff

diff --git a/libbirdgems/fit_cubic.c b/libbirdgems/fit_cubic.cindex cda61f7..863b093 100644--- a/libbirdgems/fit_cubic.c+++ b/libbirdgems/fit_cubic.c@@ -22,10 +22,10 @@ Adapted to BirdFont by Johan Mattsson 2015  #include "GraphicsGems.h" -#ifdef MAC-#include <malloc/malloc.h>-#else+#ifdef __linux__ #include <malloc.h>+#else+#include <stdlib.h> #endif  #include <math.h>

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112