summaryrefslogtreecommitdiff
path: root/TestPrograms/test_ppc_power9.cxx
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-08-06 17:49:39 -0400
committerJeffrey Walton <noloader@gmail.com>2020-08-06 17:49:39 -0400
commit5334683711cf3c1f606e7f3e459d40d9eef3f44d (patch)
tree14bc045d77582273fc1ff50d4ca0e3bbdac1dcbf /TestPrograms/test_ppc_power9.cxx
parent3ca143b1900dbb24699dde563ea0ebfb46bbefbf (diff)
downloadcryptopp-git-5334683711cf3c1f606e7f3e459d40d9eef3f44d.tar.gz
Use __clang_major__ rather than __clang__ in macro
Diffstat (limited to 'TestPrograms/test_ppc_power9.cxx')
-rw-r--r--TestPrograms/test_ppc_power9.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/TestPrograms/test_ppc_power9.cxx b/TestPrograms/test_ppc_power9.cxx
index 2333f9b3..b93e4395 100644
--- a/TestPrograms/test_ppc_power9.cxx
+++ b/TestPrograms/test_ppc_power9.cxx
@@ -1,9 +1,9 @@
#define GNUC_VERSION (__GNUC__*1000 + __GNUC_MAJOR__*10)
#if defined(__apple_build_version__)
-# define APPLE_VERSION (__clang__*1000 + __clang_minor__*10)
+# define APPLE_VERSION (__clang_major__*1000 + __clang_minor__*10)
#else
-# define LLVM_VERSION (__clang__*1000 + __clang_minor__*10)
+# define LLVM_VERSION (__clang_major__*1000 + __clang_minor__*10)
#endif
#if (GNUC_VERSION >= 4060) || (LLVM_VERSION >= 1070) || (APPLE_VERSION >= 2000)