aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-01-01 14:01:06 -0500
committerJack Lloyd <[email protected]>2018-01-01 14:01:06 -0500
commit50e4b38ad56f12599b360f8db8f431da39452341 (patch)
treec03d8386b9c3c013d8b106f354dcfcd7c0a74e1f /src
parent74e7e28a0ed59dd1602656a4049e898fab24eaaf (diff)
Avoid warning with old Clang
Clang defines __GNUG__ so we ended up ignoring the Clang version.
Diffstat (limited to 'src')
-rw-r--r--src/lib/utils/compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/compiler.h b/src/lib/utils/compiler.h
index fd59c2d32..68fc51e6d 100644
--- a/src/lib/utils/compiler.h
+++ b/src/lib/utils/compiler.h
@@ -69,7 +69,7 @@
/*
* Define BOTAN_FUNC_ISA
*/
-#if defined(__GNUG__) || (BOTAN_CLANG_VERSION > 38)
+#if (defined(__GNUG__) && !defined(__clang__)) || (BOTAN_CLANG_VERSION > 38)
#define BOTAN_FUNC_ISA(isa) __attribute__ ((target(isa)))
#else
#define BOTAN_FUNC_ISA(isa)