From ec4ff6e8117424e08afa13cdaa0b3d6aaa602f32 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 25 Aug 2019 18:41:07 +0300 Subject: [PATCH] compiler tcc: tcc does not have emmintrin.h, so define STBI_NO_SIMD if tcc is used. --- thirdparty/stb_image/stb_image.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/thirdparty/stb_image/stb_image.h b/thirdparty/stb_image/stb_image.h index a6202a31fb..64f2692211 100644 --- a/thirdparty/stb_image/stb_image.h +++ b/thirdparty/stb_image/stb_image.h @@ -315,6 +315,9 @@ RECENT REVISION HISTORY: // want the zlib decoder to be available, #define STBI_SUPPORT_ZLIB // +#ifdef __TINYC__ +#define STBI_NO_SIMD +#endif #ifndef STBI_NO_STDIO #include