gallium: GCC 4.9 allows to include tmmintrin.h without -msse3.
authorJose Fonseca <jfonseca@vmware.com>
Sun, 9 Aug 2015 10:21:03 +0000 (11:21 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Sun, 9 Aug 2015 10:32:43 +0000 (11:32 +0100)
Fixes build with MinGW x86_64 build with GCC 4.9, due to conflicting
definition _mm_shuffle_epi8 of u_sse.h and system headers.

Trivial.

src/gallium/include/pipe/p_config.h

index 794aabe85f2688e9afd209197ebc6cddfc99f1ab..ac14f86fdc496a49f6ffe70c9c3bd1a916be22bc 100644 (file)
 #else
 #define PIPE_ARCH_SSE
 #endif
-#if defined(PIPE_CC_GCC) && !defined(__SSSE3__)
-/* #warning SSE3 support requires -msse3 compiler options */
+#if defined(PIPE_CC_GCC) && (__GNUC__ * 100 + __GNUC_MINOR__) < 409 && !defined(__SSSE3__)
+/* #warning SSE3 support requires -msse3 compiler options before GCC 4.9 */
 #else
 #define PIPE_ARCH_SSSE3
 #endif