https://git.reactos.org/?p=reactos.git;a=commitdiff;h=de16ef3da0f179f8972b5…
commit de16ef3da0f179f8972b59adc57d92d456b370e8
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Thu Nov 26 02:03:06 2020 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Nov 26 02:05:59 2020 +0100
[NDK] Add missing nop NEC definitions if not X86 (for consistency with what's done
in the kernel-mode headers). Addendum to 9feab8e9.
---
sdk/include/ndk/ketypes.h | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/sdk/include/ndk/ketypes.h b/sdk/include/ndk/ketypes.h
index bd9409d5d26..0fba8d3455f 100644
--- a/sdk/include/ndk/ketypes.h
+++ b/sdk/include/ndk/ketypes.h
@@ -221,8 +221,8 @@ typedef CCHAR KPROCESSOR_MODE;
//
#define SharedUserData ((KUSER_SHARED_DATA *)USER_SHARED_DATA)
-/* Macros for user-mode run-time checks of X86 system architecture */
#ifdef _X86_
+/* Macros for user-mode run-time checks of X86 system architecture */
#ifndef IsNEC_98
#define IsNEC_98 (SharedUserData->AlternativeArchitecture == NEC98x86)
@@ -242,8 +242,27 @@ typedef CCHAR KPROCESSOR_MODE;
#define SetNotNEC_98
#endif
+#else // !_X86_
+/* Correctly define these run-time definitions for non X86 machines */
+
+#ifndef IsNEC_98
+#define IsNEC_98 (FALSE)
+#endif
+
+#ifndef IsNotNEC_98
+#define IsNotNEC_98 (TRUE)
+#endif
+
+#ifndef SetNEC_98
+#define SetNEC_98
+#endif
+
+#ifndef SetNotNEC_98
+#define SetNotNEC_98
#endif
+#endif // _X86_
+
//
// Maximum WOW64 Entries in KUSER_SHARED_DATA
//