From 6575d31379045f34fa7d23b79d9adea2f18899e5 Mon Sep 17 00:00:00 2001 From: Laurentino Luna <81370009+fuserr7@users.noreply.github.com> Date: Tue, 24 Aug 2021 11:34:52 -0300 Subject: [PATCH] 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 --- src/textures.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/textures.c b/src/textures.c index 6d5c2c5f4..f8b693d60 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) || \