summaryrefslogtreecommitdiff
path: root/TestPrograms
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
parent3ca143b1900dbb24699dde563ea0ebfb46bbefbf (diff)
downloadcryptopp-git-5334683711cf3c1f606e7f3e459d40d9eef3f44d.tar.gz
Use __clang_major__ rather than __clang__ in macro
Diffstat (limited to 'TestPrograms')
-rw-r--r--TestPrograms/test_cxx11_noexcept.cxx4
-rw-r--r--TestPrograms/test_ppc_power7.cxx4
-rw-r--r--TestPrograms/test_ppc_power8.cxx4
-rw-r--r--TestPrograms/test_ppc_power9.cxx4
4 files changed, 8 insertions, 8 deletions
diff --git a/TestPrograms/test_cxx11_noexcept.cxx b/TestPrograms/test_cxx11_noexcept.cxx
index f2813dc2..2b56f37a 100644
--- a/TestPrograms/test_cxx11_noexcept.cxx
+++ b/TestPrograms/test_cxx11_noexcept.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)
diff --git a/TestPrograms/test_ppc_power7.cxx b/TestPrograms/test_ppc_power7.cxx
index e1f27ace..7ad1324d 100644
--- a/TestPrograms/test_ppc_power7.cxx
+++ b/TestPrograms/test_ppc_power7.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)
diff --git a/TestPrograms/test_ppc_power8.cxx b/TestPrograms/test_ppc_power8.cxx
index 84840226..bd678503 100644
--- a/TestPrograms/test_ppc_power8.cxx
+++ b/TestPrograms/test_ppc_power8.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)
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)