From: Ivan Maidanski Date: Sat, 15 Apr 2017 06:56:36 +0000 (+0300) Subject: Use CLANG/GNUC_PREREQ macros in gcc/powerpc.h X-Git-Tag: v7.6.0~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e0017cbc7acdfb6714b67f5cd4b4f7b18e0c67c;p=libatomic_ops 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__. --- 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. */