summaryrefslogtreecommitdiff
path: root/includes/stg/RtsMachRegs.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/stg/RtsMachRegs.h')
-rw-r--r--includes/stg/RtsMachRegs.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/includes/stg/RtsMachRegs.h b/includes/stg/RtsMachRegs.h
index 627bdfeebb..e1233a1a55 100644
--- a/includes/stg/RtsMachRegs.h
+++ b/includes/stg/RtsMachRegs.h
@@ -14,8 +14,8 @@
#pragma once
-#ifdef UnregisterisedCompiler
-#ifndef NO_REGS
+#if defined(UnregisterisedCompiler)
+#if !defined(NO_REGS)
#define NO_REGS
#endif
#endif
@@ -30,7 +30,7 @@
* the stack, and components of an unboxed tuple will be returned on
* the stack rather than in registers.
*/
-#ifdef NO_REGS
+#if defined(NO_REGS)
#define MACHREGS_NO_REGS 1
@@ -38,11 +38,11 @@
#define MACHREGS_NO_REGS 0
-#ifdef i386_HOST_ARCH
+#if defined(i386_HOST_ARCH)
#define MACHREGS_i386 1
#endif
-#ifdef x86_64_HOST_ARCH
+#if defined(x86_64_HOST_ARCH)
#define MACHREGS_x86_64 1
#endif
@@ -51,19 +51,19 @@
#define MACHREGS_powerpc 1
#endif
-#ifdef sparc_HOST_ARCH
+#if defined(sparc_HOST_ARCH)
#define MACHREGS_sparc 1
#endif
-#ifdef arm_HOST_ARCH
+#if defined(arm_HOST_ARCH)
#define MACHREGS_arm 1
#endif
-#ifdef aarch64_HOST_ARCH
+#if defined(aarch64_HOST_ARCH)
#define MACHREGS_aarch64 1
#endif
-#ifdef darwin_HOST_OS
+#if defined(darwin_HOST_OS)
#define MACHREGS_darwin 1
#endif