From 2a97ec6e0e13b06b69a540d86719cc46d21913d2 Mon Sep 17 00:00:00 2001 From: "pavel.pimenov" Date: Wed, 25 Apr 2018 15:27:35 +0300 Subject: [PATCH] Windows: Fix build Visual C++ ARM/ARM64 --- include/libtorrent/config.hpp | 2 +- src/crc32c.cpp | 2 +- src/ffs.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/libtorrent/config.hpp b/include/libtorrent/config.hpp index f380ce233..5d7e85c04 100644 --- a/include/libtorrent/config.hpp +++ b/include/libtorrent/config.hpp @@ -568,7 +568,7 @@ constexpr std::size_t TORRENT_WRITE_HANDLER_MAX_SIZE = 342; #endif // TORRENT_HAS_SSE -#if (defined __arm__ || defined __aarch64__) +#if (defined __arm__ || defined __aarch64__ || defined _M_ARM || defined _M_ARM64) #define TORRENT_HAS_ARM 1 #else #define TORRENT_HAS_ARM 0 diff --git a/src/crc32c.cpp b/src/crc32c.cpp index eb3f046f0..9c558b0fb 100644 --- a/src/crc32c.cpp +++ b/src/crc32c.cpp @@ -36,7 +36,7 @@ POSSIBILITY OF SUCH DAMAGE. #include "libtorrent/aux_/disable_warnings_push.hpp" #include -#if (defined _MSC_VER && _MSC_VER >= 1600) +#if (defined _MSC_VER && _MSC_VER >= 1600 && (defined _M_IX86 || defined _M_X64)) #include #endif diff --git a/src/ffs.cpp b/src/ffs.cpp index 2cf6c764a..cbb2f783d 100644 --- a/src/ffs.cpp +++ b/src/ffs.cpp @@ -36,7 +36,7 @@ POSSIBILITY OF SUCH DAMAGE. #include "libtorrent/aux_/disable_warnings_push.hpp" -#if (defined _MSC_VER && _MSC_VER >= 1600) +#if (defined _MSC_VER && _MSC_VER >= 1600 && (defined _M_IX86 || defined _M_X64)) #include #endif