From abe81006dbde19dd280eb2d02152d9aae5904d7d Mon Sep 17 00:00:00 2001 From: Laura Dennis-Jordan Date: Thu, 5 Feb 2015 20:49:04 +0100 Subject: [PATCH] =?UTF-8?q?Fixed=20bug=20where=20NEON=20code=20was=20#ifde?= =?UTF-8?q?f=E2=80=99d=20out=20on=20GCC/clang=20even=20where=20explicitly?= =?UTF-8?q?=20requested.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stb_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_image.h b/stb_image.h index c3945c2..a19375c 100644 --- a/stb_image.h +++ b/stb_image.h @@ -624,7 +624,7 @@ typedef unsigned char validate_uint32[sizeof(stbi__uint32)==4 ? 1 : -1]; #define STBI_FREE(p) free(p) #endif -#if defined(__GNUC__) && !defined(__SSE2__) && !defined(STBI_NO_SIMD) +#if defined(__GNUC__) && (defined(__x86_64__) || defined(__i386)) && !defined(__SSE2__) && !defined(STBI_NO_SIMD) // gcc doesn't support sse2 intrinsics unless you compile with -msse2, // (but compiling with -msse2 allows the compiler to use SSE2 everywhere; // this is just broken and gcc are jerks for not fixing it properly