[project @ 2003-06-04 15:47:58 by simonmar]
[ghc-hetmet.git] / ghc / compiler / nativeGen / NCG.h
index 9d11c21..a5c5d3e 100644 (file)
@@ -65,6 +65,11 @@ you will screw up the layout where they are used in case expressions!
 # define BYTES_PER_WORD_STR "4"
 #endif
 
+#if powerpc_TARGET_ARCH
+# define BYTES_PER_WORD 4
+# define BYTES_PER_WORD_STR "4"
+#endif
+
 ---------------------------------------------
 
 #if alpha_TARGET_ARCH
@@ -142,4 +147,16 @@ you will screw up the layout where they are used in case expressions!
 # define IF_OS_solaris2(x,y) y
 #endif
 ---------------------------------------------
+#if powerpc_TARGET_ARCH
+# define IF_ARCH_powerpc(x,y) x
+#else
+# define IF_ARCH_powerpc(x,y) y
+#endif
+-- - - - - - - - - - - - - - - - - - - - - - 
+#if darwin_TARGET_OS
+# define IF_OS_darwin(x,y) x
+#else
+# define IF_OS_darwin(x,y) y
+#endif
+---------------------------------------------
 #endif