commit 5f7dac6e3202d873354d0006281df5e34de13eb4
parent 803320ae4aec3e69aea8e86d787c817586e871f1
Author: [email protected] <[email protected]>
Date: Mon, 18 Jul 2016 07:27:46 +0300
Fixed compiler attribute detection
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/include/kfr/base/kfr.h b/include/kfr/base/kfr.h
@@ -33,7 +33,7 @@
#endif
#ifdef CID_MSVC_ATTRIBUTES
-#define KFR_GNU_ATTRIBUTES CID_MSVC_ATTRIBUTES
+#define KFR_MSVC_ATTRIBUTES CID_MSVC_ATTRIBUTES
#endif
#ifdef CID_ARCH_X64
@@ -112,14 +112,12 @@ constexpr int version = KFR_VERSION;
#define KFR_CPU_NAME_sse3 "sse3"
#define KFR_CPU_NAME_sse2 "sse2"
-#if __has_attribute(target)
#define KFR_USE_CPU(arch) __attribute__((target(KFR_CPU_NAME_##arch)))
+
#else
#define KFR_USE_CPU(arch)
#endif
-#endif
-
#if defined(KFR_GNU_ATTRIBUTES)
#define KFR_FAST_CC __attribute__((fastcall))
#else