Cope with libraries in libraries/foo/bar rather than just libraries/foo
[ghc-hetmet.git] / includes / Stg.h
index 6ddf17a..35f4eda 100644 (file)
@@ -31,6 +31,9 @@
  */
 #ifndef IN_STG_CODE
 # define IN_STG_CODE 1
+# define _ISOC99_SOURCE
+// Turn on C99 for .hc code.  This gives us the INFINITY and NAN
+// constants from math.h, which we occasionally need to use in .hc (#1861)
 #endif
 
 #if IN_STG_CODE == 0
@@ -154,6 +157,10 @@ typedef StgWord StgWordArray[];
 #include "MachRegs.h"
 #include "Regs.h"
 
+#ifdef TICKY_TICKY
+#include "TickyCounters.h"
+#endif
+
 #if IN_STG_CODE
 /*
  * This is included later for RTS sources, after definitions of