diff options
author | Jeffrey Walton <noloader@gmail.com> | 2020-12-26 00:42:09 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2020-12-26 00:42:09 -0500 |
commit | 4577311727f2c75fb69550ffdd289f3292dd3c88 (patch) | |
tree | da92e83fcaa9ebbfcb04de8beeddce7f7334c8be /ppc_simd.h | |
parent | 3c0910e0106e469cb343c5150273e96637c58439 (diff) | |
download | cryptopp-git-4577311727f2c75fb69550ffdd289f3292dd3c88.tar.gz |
Fix compile on AIX POWER7 with IBM XLC
Let's see what this breaks later because of Clang's stupid tricks...
Diffstat (limited to 'ppc_simd.h')
-rw-r--r-- | ppc_simd.h | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -121,16 +121,20 @@ // provide an option to set it. We have to set it
// for the code below. This define must stay in
// sync with the define in test_ppc_power7.cxx.
-#if defined(_AIX) && defined(_ARCH_PWR7) && defined(__xlC__)
-# define __VSX__ 1
+#ifndef CRYPTOPP_DISABLE_POWER7
+# if defined(_AIX) && defined(_ARCH_PWR7) && defined(__xlC__)
+# define __VSX__ 1
+# endif
#endif
// XL C++ on AIX does not define CRYPTO and does not
// provide an option to set it. We have to set it
// for the code below. This define must stay in
// sync with the define in test_ppc_power8.cxx
-#if defined(_AIX) && defined(_ARCH_PWR8) && defined(__xlC__)
-# define __CRYPTO__ 1
+#ifndef CRYPTOPP_DISABLE_POWER8
+# if defined(_AIX) && defined(_ARCH_PWR8) && defined(__xlC__)
+# define __CRYPTO__ 1
+# endif
#endif
/// \brief Cast array to vector pointer
|