Windows: Fix build Visual C++ ARM/ARM64

This commit is contained in:
pavel.pimenov 2018-04-25 15:27:35 +03:00 committed by Arvid Norberg
parent 0ec66e9024
commit 2a97ec6e0e
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -36,7 +36,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/aux_/disable_warnings_push.hpp"
#include <boost/crc.hpp>
#if (defined _MSC_VER && _MSC_VER >= 1600)
#if (defined _MSC_VER && _MSC_VER >= 1600 && (defined _M_IX86 || defined _M_X64))
#include <nmmintrin.h>
#endif

View File

@ -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 <nmmintrin.h>
#endif