SFML/SOURCES/SFML-unresolved__cpu_model-...

22 lines
786 B
Diff

diff -up extlibs/headers/stb_image/stb_image.h~ extlibs/headers/stb_image/stb_image.h
--- extlibs/headers/stb_image/stb_image.h~ 2015-08-24 18:01:06.000000000 +0200
+++ extlibs/headers/stb_image/stb_image.h 2016-02-27 22:53:15.712543109 +0100
@@ -671,14 +671,9 @@ static int stbi__sse2_available()
static int stbi__sse2_available()
{
-#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 // GCC 4.8 or later
- // GCC 4.8+ has a nice way to do this
- return __builtin_cpu_supports("sse2");
-#else
- // portable way to do this, preferably without using GCC inline ASM?
- // just bail for now.
- return 0;
-#endif
+ // We only enable SSE2 on gcc when build with -msse2, so it is always
+ // safe to use SSE2, simply return 1
+ return 1;
}
#endif
#endif