From 950f33bd3ffe154290cec27623d9e6da2b419ebb Mon Sep 17 00:00:00 2001 From: baiyfcu Date: Fri, 17 Mar 2023 02:04:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Ewindows=E4=B8=AD=5FM=5FARM64?= =?UTF-8?q?=20=5FM=5FARM=20=5FM=5FX64=20CPU=E6=8C=87=E5=AE=9A=E9=9B=86?= =?UTF-8?q?=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/HttpRequester.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Http/HttpRequester.cpp b/src/Http/HttpRequester.cpp index 8fd9807e..e6e91378 100644 --- a/src/Http/HttpRequester.cpp +++ b/src/Http/HttpRequester.cpp @@ -117,13 +117,25 @@ static std::string httpBody() { #if (defined(__amd64__) && !defined(__amd64)) #define __amd64 #endif + +#if (defined(_M_ARM64) && !defined(__arm64__)) +#define __arm64__ +#endif + +#if (defined(_M_X64) && !defined(__x86_64__)) +#define __x86_64__ +#endif + +#if (defined(_M_ARM) && !defined(__arm__)) +#define __arm__ +#endif #if (defined(__i386__) || defined(__amd64__)) && (!defined(__x86__)) #if !(defined(_MSC_VER) && defined(__amd64__)) #define __x86__ // MSVC doesn't support inline assembly in x64 #endif #endif - + auto &arch = args["arch"]; #if defined(__x86_64__) || defined(__amd64__) arch = "x86_64";