Chlumsky / msdfgen

Multi-channel signed distance field generator
MIT License
3.97k stars 412 forks source link

Fix compile issues on GCC #112

Closed jnhyatt closed 4 years ago

jnhyatt commented 4 years ago

Fix for #111. For whatever reason, your current includes don't bring memcpy in (I'm guessing it has to do with how whatever STL implementation I'm using is structured). I opted for the C++ version, but I can replace #include <cstring> with #include <string.h> and it will also solve the problem, while also allowing removal of the std:: prefixes on each call. Let me know what you think!

Really awesome piece of code, it's proving very useful in my project. Thanks!