From e2c087adf039e9303a945cbd1a72a7cb7b0d8cc6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 22 Dec 2016 19:34:26 +0300 Subject: Fix compilation with old gcc. --- src/resources/dye/dyepalette_replaceacolor.cpp | 6 +++--- src/resources/dye/dyepalette_replaceaoglcolor.cpp | 6 +++--- src/resources/dye/dyepalette_replacescolor.cpp | 6 +++--- src/resources/dye/dyepalette_replacesoglcolor.cpp | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'src/resources/dye') 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 #endif // SDL_BYTEORDER -#ifdef __x86_64__ +#ifdef SIMD_SUPPORTED // avx2 -#include "immintrin.h" -#endif // __x86_64__ +#include +#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 #endif // SDL_BYTEORDER -#ifdef __x86_64__ +#ifdef SIMD_SUPPORTED // avx2 -#include "immintrin.h" -#endif // __x86_64__ +#include +#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 #endif // SDL_BYTEORDER -#ifdef __x86_64__ +#ifdef SIMD_SUPPORTED // avx2 -#include "immintrin.h" -#endif // __x86_64__ +#include +#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 #endif // SDL_BYTEORDER -#ifdef __x86_64__ +#ifdef SIMD_SUPPORTED // avx2 -#include "immintrin.h" -#endif // __x86_64__ +#include +#endif // SIMD_SUPPORTED #include "debug.h" -- cgit v1.2.3-60-g2f50