memononen / nanovg

Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
zlib License
5.07k stars 767 forks source link

stb_image.h and stb_truetype.h: memory.h doesn't exist on some platforms #153

Open floooh opened 9 years ago

floooh commented 9 years ago

stb_image.h and stb_truetype.h include memory.h for memset() and memcpy() which doesn't exist on some platforms (the file doesn't exist at all in the NaCl SDK, and the Android NDK only has a completely empty memory.h).

I replaced memory.h with string.h and it worked. Not sure whether this is 'kosher' though.

floooh commented 9 years ago

Looks like upstream stb_image.h already has the fix, but not stb_truetype.h

ColinGilbert commented 9 years ago

Any updates on this?

dougbinks commented 9 years ago

FYI - The origin of these libs is here: https://github.com/nothings/stb