[project @ 1997-08-25 21:35:02 by sof]
[ghc-hetmet.git] / ghc / compiler / nativeGen / NCG.h
index 873ebeb..c4e409e 100644 (file)
@@ -1,5 +1,14 @@
 #ifndef NCG_H
 #define NCG_H
+#if 0
+ COMPILING_NCG is used to control the visibility of 
+ relevant information from the GHC header files when
+ compiling the native code generator modules.
+#endif
+
+#ifndef COMPILING_NCG
+#define COMPILING_NCG
+#endif
 
 #if 0
 
@@ -14,7 +23,7 @@ you will screw up the layout where they are used in case expressions!
 
 #define FAST_REG_NO FAST_INT
 
-#include "../../includes/platform.h"
+#include "../../includes/config.h"
 
 #if 0
 {-testing only-}
@@ -37,6 +46,7 @@ you will screw up the layout where they are used in case expressions!
 # define STOLEN_X86_REGS 4
 -- HACK: go for the max
 #endif
+
 #include "../../includes/MachRegs.h"
 
 #if alpha_TARGET_ARCH
@@ -130,6 +140,12 @@ you will screw up the layout where they are used in case expressions!
 #else
 # define IF_OS_bsdi(x,y) y
 #endif
+-- - - - - - - - - - - - - - - - - - - - - - 
+#if cygwin32_TARGET_OS
+# define IF_OS_cygwin32(x,y) x
+#else
+# define IF_OS_cygwin32(x,y) y
+#endif
 ---------------------------------------------
 #if sparc_TARGET_ARCH
 # define IF_ARCH_sparc(x,y) x