Use CLANG/GNUC_PREREQ macros in gcc/powerpc.h
authorIvan Maidanski <ivmai@mail.ru>
Sat, 15 Apr 2017 06:56:36 +0000 (09:56 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 15 Apr 2017 06:56:36 +0000 (09:56 +0300)
* src/atomic_ops/sysdeps/gcc/powerpc.h: Use AO_GNUC_PREREQ() instead
of direct use of __GNUC[_MINOR]__; use AO_CLANG_PREREQ() instead of
direct use __clang_major__ and __clang_minor__.

src/atomic_ops/sysdeps/gcc/powerpc.h

index edbbeb8..eb594a0 100644 (file)
@@ -23,9 +23,7 @@
 
 /* TODO: Implement double-wide operations if available. */
 
-#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) \
-     || __clang_major__ > 3 \
-     || (__clang_major__ == 3 && __clang_minor__ >= 8)) \
+#if (AO_GNUC_PREREQ(4, 8) || AO_CLANG_PREREQ(3, 8)) \
     && !defined(AO_DISABLE_GCC_ATOMICS)
   /* Probably, it could be enabled even for earlier gcc/clang versions. */