https://git.reactos.org/?p=reactos.git;a=commitdiff;h=73c776c744f26b294a5e6…
commit 73c776c744f26b294a5e6bc7e1fc11b374b05c17
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sat Feb 2 11:46:19 2019 +0100
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Mon Mar 4 21:58:42 2019 +0100
[WIDL] Fix non-x86 builds
---
sdk/tools/widl/widl.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/sdk/tools/widl/widl.c b/sdk/tools/widl/widl.c
index 77d4b7750a..ec1e61e22a 100644
--- a/sdk/tools/widl/widl.c
+++ b/sdk/tools/widl/widl.c
@@ -92,15 +92,16 @@ static const char usage[] =
static const char version_string[] = "Wine IDL Compiler version "
PACKAGE_VERSION "\n"
"Copyright 2002 Ove Kaaven\n";
-#ifdef __i386__
+// __REACTOS__!! We must use TARGET_ macros here!
+#ifdef TARGET_i386
enum target_cpu target_cpu = CPU_x86;
-#elif defined(__x86_64__)
+#elif defined(TARGET_amd64)
enum target_cpu target_cpu = CPU_x86_64;
-#elif defined(__powerpc__)
+#elif defined(TARGET_ppc)
enum target_cpu target_cpu = CPU_POWERPC;
-#elif defined(__arm__)
+#elif defined(TARGET_arm)
enum target_cpu target_cpu = CPU_ARM;
-#elif defined(__aarch64__)
+#elif defined(TARGET_arm64)
enum target_cpu target_cpu = CPU_ARM64;
#else
#error Unsupported CPU