]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
config-win32: cpu-machine-OS for Windows on ARM
authorMelissa Mears <myriachan@gmail.com>
Wed, 13 Nov 2019 03:24:35 +0000 (19:24 -0800)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 14 Nov 2019 22:27:06 +0000 (23:27 +0100)
Define the OS macro properly for Windows on ARM builds.  Also, we might
as well add the GCC-style IA-64 macro.

Closes #4590

lib/config-win32.h

index 90c10547657527db906cc7c7fe4d153672ba4c44..1dcce0db41a81cae21980e289fd477820f4c5b1d 100644 (file)
@@ -735,8 +735,12 @@ Vista
 #define OS "i386-pc-win32"
 #elif defined(_M_X64) || defined(__x86_64__) /* x86_64 (MSVC >=2005 or gcc) */
 #define OS "x86_64-pc-win32"
-#elif defined(_M_IA64) /* Itanium */
+#elif defined(_M_IA64) || defined(__ia64__) /* Itanium */
 #define OS "ia64-pc-win32"
+#elif defined(_M_ARM_NT) || defined(__arm__) /* ARMv7-Thumb2 (Windows RT) */
+#define OS "thumbv7a-pc-win32"
+#elif defined(_M_ARM64) || defined(__aarch64__) /* ARM64 (Windows 10) */
+#define OS "aarch64-pc-win32"
 #else
 #define OS "unknown-pc-win32"
 #endif