]> granicus.if.org Git - libatomic_ops/commitdiff
Fix double_ptr_storage definition for GCC pre-v4 (x86_64)
authorIvan Maidanski <ivmai@mail.ru>
Mon, 26 Mar 2012 04:34:27 +0000 (08:34 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 26 Mar 2012 12:39:56 +0000 (16:39 +0400)
* src/atomic_ops/sysdeps/standard_ao_double_t.h: Do not use __m128
if GCC pre-v4 (at least, xmmintrin.h is missing in gcc-3.4.3-x86_64
included in Solaris 10 distribution).

src/atomic_ops/sysdeps/standard_ao_double_t.h

index 1a53912675c811958791ef984fb1590f7c20399f..7089f05190ae5c66f825c3219d84ec1a07f97399 100644 (file)
@@ -6,7 +6,7 @@
  * Similar things could be done for PowerPC 64-bit using a VMX data type...
  */
 
-#if (defined(__x86_64__) && defined(__GNUC__)) || defined(_WIN64)
+#if (defined(__x86_64__) && __GNUC__ >= 4) || defined(_WIN64)
 # include <xmmintrin.h>
   typedef __m128 double_ptr_storage;
 #elif defined(_WIN32) && !defined(__GNUC__)