From 3e0017cbc7acdfb6714b67f5cd4b4f7b18e0c67c Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sat, 15 Apr 2017 09:56:36 +0300 Subject: [PATCH] Use CLANG/GNUC_PREREQ macros in gcc/powerpc.h * 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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/atomic_ops/sysdeps/gcc/powerpc.h b/src/atomic_ops/sysdeps/gcc/powerpc.h index edbbeb8..eb594a0 100644 --- a/src/atomic_ops/sysdeps/gcc/powerpc.h +++ b/src/atomic_ops/sysdeps/gcc/powerpc.h @@ -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. */ -- 2.40.0