Fix tcc not finding emmintrin.h

This allows to compile raylib with tcc with no errors.
This commit is contained in:
laurenloco 2021-08-23 18:40:01 -03:00
parent 45fd75952d
commit c7e51c740d

View File

@ -688,6 +688,10 @@ typedef unsigned char validate_uint32[sizeof(stbi__uint32)==4 ? 1 : -1];
#define STBI_NO_SIMD #define STBI_NO_SIMD
#endif #endif
#if defined(__TINYC__)
#define STBI_NO_SIMD
#endif
#if !defined(STBI_NO_SIMD) && (defined(STBI__X86_TARGET) || defined(STBI__X64_TARGET)) #if !defined(STBI_NO_SIMD) && (defined(STBI__X86_TARGET) || defined(STBI__X64_TARGET))
#define STBI_SSE2 #define STBI_SSE2
#include <emmintrin.h> #include <emmintrin.h>