summaryrefslogtreecommitdiffhomepage
path: root/src/textures.c
diff options
context:
space:
mode:
authorLaurentino Luna <[email protected]>2021-08-24 11:34:52 -0300
committerGitHub <[email protected]>2021-08-24 16:34:52 +0200
commit6575d31379045f34fa7d23b79d9adea2f18899e5 (patch)
tree073d23a3350d95bcc2f5b4f8300c8e7607ee0b54 /src/textures.c
parent7c1889c28205b83afaa39da73f1831a72bd9c502 (diff)
downloadraylib-6575d31379045f34fa7d23b79d9adea2f18899e5.tar.gz
raylib-6575d31379045f34fa7d23b79d9adea2f18899e5.zip
Fix tcc not finding emmintrin.h (#1947)
* Fix tcc not finding emmintrin.h This allows to compile raylib with tcc with no errors. * Remove __TINYC__ check from stb_image.h This will be placed under textures.c * Move tcc check to textures.c Avoiding to change stb_image.h
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/textures.c b/src/textures.c
index 6d5c2c5f..f8b693d6 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -102,6 +102,10 @@
#define STBI_NO_PIC
#define STBI_NO_PNM // Image format .ppm and .pgm
+#if defined(__TINYC__)
+ #define STBI_NO_SIMD
+#endif
+
#if (defined(SUPPORT_FILEFORMAT_BMP) || \
defined(SUPPORT_FILEFORMAT_PNG) || \
defined(SUPPORT_FILEFORMAT_TGA) || \