My extension doesn't build on OSX

I have an extension which builds when I launch (or bundle) the project on Windows machine and doesn’t build when I’m trying to do so on Mac. It fails to build with an error:

Line 5: ‘malloc.h’ file not found
#include <malloc.h>

What can I do to fix it?

1 Like

I believe malloc() is available via stdlib.h on macOS.

1 Like

I thought extensions are being build on the external server

Yes, they are?

Each platform you build for requires a separate SDK (which is installed on the build server).
Many of the common C functions reside in different files in different SDKs.