aboutsummaryrefslogtreecommitdiff
path: root/src/threadpool-utils.h
diff options
context:
space:
mode:
authorMarat Dukhan <maratek@gmail.com>2020-04-10 18:39:37 -0700
committerMarat Dukhan <maratek@gmail.com>2020-04-10 18:39:37 -0700
commit4ac9270e4b6ecf03f18e3d0ed2028aac2c988911 (patch)
tree78aff84074c0321bdfba4af1fe3dd73176fc4c13 /src/threadpool-utils.h
parentddd479bcd8ba87094132ecf438dd76eb08ee3b0d (diff)
downloadpthreadpool-4ac9270e4b6ecf03f18e3d0ed2028aac2c988911.tar.gz
Support Windows on ARM/ARM64
Diffstat (limited to 'src/threadpool-utils.h')
-rw-r--r--src/threadpool-utils.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/threadpool-utils.h b/src/threadpool-utils.h
index e1e96c5..24fee43 100644
--- a/src/threadpool-utils.h
+++ b/src/threadpool-utils.h
@@ -11,7 +11,9 @@
/* MSVC-specific headers */
#if defined(_MSC_VER) && _MSC_VER >= 1920
#include <intrin.h>
- #include <immintrin.h>
+ #if defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64)
+ #include <immintrin.h>
+ #endif
#endif