diff --git a/thirdparty/etcpak/BlockData.cpp b/thirdparty/etcpak/BlockData.cpp index a2cd032c5b..bd738085f3 100644 --- a/thirdparty/etcpak/BlockData.cpp +++ b/thirdparty/etcpak/BlockData.cpp @@ -15,7 +15,7 @@ # include #endif -#ifdef __SSE4_1__ +#if defined __SSE4_1__ || defined __AVX2__ || defined _MSC_VER # ifdef _MSC_VER # include # include @@ -24,12 +24,6 @@ # else # include # endif -#else -# ifndef _MSC_VER -# include -# define _bswap(x) bswap_32(x) -# define _bswap64(x) bswap_64(x) -# endif #endif #ifndef _bswap diff --git a/thirdparty/etcpak/ProcessRGB.cpp b/thirdparty/etcpak/ProcessRGB.cpp index 220d5c55e2..9dc5a78b67 100644 --- a/thirdparty/etcpak/ProcessRGB.cpp +++ b/thirdparty/etcpak/ProcessRGB.cpp @@ -1,5 +1,6 @@ #include #include +#include #ifdef __ARM_NEON # include @@ -21,12 +22,6 @@ # else # include # endif -#else -# ifndef _MSC_VER -# include -# define _bswap(x) bswap_32(x) -# define _bswap64(x) bswap_64(x) -# endif #endif #ifndef _bswap