diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-02-21 21:05:28 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-02-21 21:05:28 -0600 |
| commit | 1682451d2e2e510dfd213f963911dabb0e328b8f (patch) | |
| tree | ca620e30d163c72a913b6ad751b85194dea97256 /lib | |
| parent | b8bcb110c2fba991cad049743073ffc7ece1143e (diff) | |
Fixed windows compilation
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/n64graphics/n64graphics.c | 4 | ||||
| -rw-r--r-- | lib/n64graphics/stb_image_write.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/n64graphics/n64graphics.c b/lib/n64graphics/n64graphics.c index cca1a61..0ff7bc7 100644 --- a/lib/n64graphics/n64graphics.c +++ b/lib/n64graphics/n64graphics.c @@ -1,6 +1,10 @@ #include <stdio.h> #include <stdlib.h> +#if defined(_WIN32) || defined(_WIN64) +#include <string.h> +#else #include <strings.h> +#endif #define STBI_NO_LINEAR #define STBI_NO_HDR diff --git a/lib/n64graphics/stb_image_write.h b/lib/n64graphics/stb_image_write.h index 465ea3b..1655877 100644 --- a/lib/n64graphics/stb_image_write.h +++ b/lib/n64graphics/stb_image_write.h @@ -152,6 +152,7 @@ LICENSE #define INCLUDE_STB_IMAGE_WRITE_H #include <stdlib.h> +#include <stdint.h> // if STB_IMAGE_WRITE_STATIC causes problems, try defining STBIWDEF to 'inline' or 'static inline' #ifndef STBIWDEF |
