File gcc-make-xmmintrin-header-cplusplus-compatible.patch of Package mingw32-gcc
--- gcc/config/i386/xmmintrin.h 2014-03-24 17:17:51.000000000 +0100
+++ gcc/config/i386/xmmintrin.h 2014-11-04 21:51:49.439379146 +0100
@@ -64,6 +64,10 @@
#define __DISABLE_SSE__
#endif /* __SSE__ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* The Intel API is flexible enough that we must allow aliasing with other
vector types, and their scalar components. */
typedef float __m128 __attribute__ ((__vector_size__ (16), __may_alias__));
@@ -1254,6 +1258,10 @@
(row3) = __builtin_ia32_movhlps (__t3, __t2); \
} while (0)
+#ifdef __cplusplus
+}
+#endif
+
/* For backward source compatibility. */
# include <emmintrin.h>