summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-22 19:34:26 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-22 20:17:57 +0300
commite2c087adf039e9303a945cbd1a72a7cb7b0d8cc6 (patch)
treecaff97bc5c7f98d12a14d8938c00a5db2114c970 /src/resources
parent2da94c63be0dd5ff21442ffdf594d8862ac2c656 (diff)
downloadmv-e2c087adf039e9303a945cbd1a72a7cb7b0d8cc6.tar.gz
mv-e2c087adf039e9303a945cbd1a72a7cb7b0d8cc6.tar.bz2
mv-e2c087adf039e9303a945cbd1a72a7cb7b0d8cc6.tar.xz
mv-e2c087adf039e9303a945cbd1a72a7cb7b0d8cc6.zip
Fix compilation with old gcc.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/dye/dyepalette_replaceacolor.cpp6
-rw-r--r--src/resources/dye/dyepalette_replaceaoglcolor.cpp6
-rw-r--r--src/resources/dye/dyepalette_replacescolor.cpp6
-rw-r--r--src/resources/dye/dyepalette_replacesoglcolor.cpp6
4 files changed, 12 insertions, 12 deletions
diff --git a/src/resources/dye/dyepalette_replaceacolor.cpp b/src/resources/dye/dyepalette_replaceacolor.cpp
index cb379a4be..b2693912b 100644
--- a/src/resources/dye/dyepalette_replaceacolor.cpp
+++ b/src/resources/dye/dyepalette_replaceacolor.cpp
@@ -26,10 +26,10 @@
#include <SDL_endian.h>
#endif // SDL_BYTEORDER
-#ifdef __x86_64__
+#ifdef SIMD_SUPPORTED
// avx2
-#include "immintrin.h"
-#endif // __x86_64__
+#include <immintrin.h>
+#endif // SIMD_SUPPORTED
#include "debug.h"
diff --git a/src/resources/dye/dyepalette_replaceaoglcolor.cpp b/src/resources/dye/dyepalette_replaceaoglcolor.cpp
index 17e9adf36..25e4c6555 100644
--- a/src/resources/dye/dyepalette_replaceaoglcolor.cpp
+++ b/src/resources/dye/dyepalette_replaceaoglcolor.cpp
@@ -28,10 +28,10 @@
#include <SDL_endian.h>
#endif // SDL_BYTEORDER
-#ifdef __x86_64__
+#ifdef SIMD_SUPPORTED
// avx2
-#include "immintrin.h"
-#endif // __x86_64__
+#include <immintrin.h>
+#endif // SIMD_SUPPORTED
#include "debug.h"
diff --git a/src/resources/dye/dyepalette_replacescolor.cpp b/src/resources/dye/dyepalette_replacescolor.cpp
index 94b7c1c5c..d6a058773 100644
--- a/src/resources/dye/dyepalette_replacescolor.cpp
+++ b/src/resources/dye/dyepalette_replacescolor.cpp
@@ -24,10 +24,10 @@
#include <SDL_endian.h>
#endif // SDL_BYTEORDER
-#ifdef __x86_64__
+#ifdef SIMD_SUPPORTED
// avx2
-#include "immintrin.h"
-#endif // __x86_64__
+#include <immintrin.h>
+#endif // SIMD_SUPPORTED
#include "debug.h"
diff --git a/src/resources/dye/dyepalette_replacesoglcolor.cpp b/src/resources/dye/dyepalette_replacesoglcolor.cpp
index 40b6fb8af..89a73d4c4 100644
--- a/src/resources/dye/dyepalette_replacesoglcolor.cpp
+++ b/src/resources/dye/dyepalette_replacesoglcolor.cpp
@@ -26,10 +26,10 @@
#include <SDL_endian.h>
#endif // SDL_BYTEORDER
-#ifdef __x86_64__
+#ifdef SIMD_SUPPORTED
// avx2
-#include "immintrin.h"
-#endif // __x86_64__
+#include <immintrin.h>
+#endif // SIMD_SUPPORTED
#include "debug.h"