summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-14 17:09:53 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-14 17:09:53 +0300
commit1a5e7c2f37f1f3b9969c01e61ab9347dcd546bee (patch)
treebf0285e1c321689e2a6b6d015099d2edcb0c3d1f /src/localconsts.h
parent6045a08795de838f8f05ed86b8579288c4d8cbaf (diff)
downloadplus-1a5e7c2f37f1f3b9969c01e61ab9347dcd546bee.tar.gz
plus-1a5e7c2f37f1f3b9969c01e61ab9347dcd546bee.tar.bz2
plus-1a5e7c2f37f1f3b9969c01e61ab9347dcd546bee.tar.xz
plus-1a5e7c2f37f1f3b9969c01e61ab9347dcd546bee.zip
Fix compilation for windows 64 with mingw.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index 08b64e0d9..786177138 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -140,11 +140,15 @@
#ifdef __x86_64__
#if !defined(__clang__) && defined(__GNUC__)
+// not for FreeBSD
#if !defined(__FreeBSD_kernel__) || !defined(__GLIBC__)
+// not works in mingw
+#ifndef WIN64
// gcc 4.8 look like support avx2, but need global define for enable any SIMD
#if GCC_VERSION >= 40900
#define SIMD_SUPPORTED
#endif // GCC_VERSION > 40900
+#endif // WIN64
#endif // !defined(__FreeBSD_kernel__) || !defined(__GLIBC__)
#endif // !defined(__clang__) && defined(__GNUC__)
#endif // __x86_64__