diff options
author | Jack Lloyd <[email protected]> | 2018-12-31 12:01:27 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-12-31 12:01:27 -0500 |
commit | 0218d580ca79cff22c6964007d18be3751c85bc8 (patch) | |
tree | 034173b6dc59ec9e9c13974aa34c1496dd5dab6f /src/lib/utils/compiler.h | |
parent | efffd951c7794739e58c998379de3e6a8e27bdd4 (diff) |
Clean up define for inline asm
Also fix xlc macro
Diffstat (limited to 'src/lib/utils/compiler.h')
-rw-r--r-- | src/lib/utils/compiler.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/utils/compiler.h b/src/lib/utils/compiler.h index 0a2503513..4f736ae6c 100644 --- a/src/lib/utils/compiler.h +++ b/src/lib/utils/compiler.h @@ -13,8 +13,12 @@ #define BOTAN_UTIL_COMPILER_FLAGS_H_ /* Should we use GCC-style inline assembler? */ -#if !defined(BOTAN_USE_GCC_INLINE_ASM) && (defined(__GNUC__) || defined(__xlc__) || defined(__SUNPRO_CC)) - #define BOTAN_USE_GCC_INLINE_ASM 1 +#if defined(BOTAN_BUILD_COMPILER_IS_GCC) || \ + defined(BOTAN_BUILD_COMPILER_IS_CLANG) || \ + defined(BOTAN_BUILD_COMPILER_IS_XLC) || \ + defined(BOTAN_BUILD_COMPILER_IS_SUN_STUDIO) + + #define BOTAN_USE_GCC_INLINE_ASM #endif /** |