charmedlabs / pixy2

Other
131 stars 98 forks source link

Doesn't compile on mac #9

Open henry-eigen opened 5 years ago

henry-eigen commented 5 years ago

../include/libpixyusb2.h:25:10: fatal error: 'malloc.h' file not found

include

robobenklein commented 5 years ago
../include/libpixyusb2.h:25:10: fatal error: 'malloc.h' file not found
#include <malloc.h>

Seems to be this Linux/Windows-only include.

robobenklein commented 5 years ago

I could change malloc.h to stdlib.h and it works on Linux, fixes the include on macOS, not sure about Windows.

robobenklein commented 5 years ago

PR #11