[project @ 2005-02-23 10:54:52 by simonmar]
authorsimonmar <unknown>
Wed, 23 Feb 2005 10:54:52 +0000 (10:54 +0000)
committersimonmar <unknown>
Wed, 23 Feb 2005 10:54:52 +0000 (10:54 +0000)
more include of <stdio.h> later: ghcautoconf.h must come before any
system includes, because it might define _FILE_OFFSET_BITS.

ghc/includes/mkDerivedConstants.c

index 77a35bc..8587fa7 100644 (file)
@@ -11,8 +11,6 @@
  *
  * ------------------------------------------------------------------------*/
 
-#include <stdio.h>
-
 #define IN_STG_CODE 0
 
 // We need offsets of profiled things... better be careful that this
@@ -23,6 +21,8 @@
 #include "RtsFlags.h"
 #include "Storage.h"
 
+#include <stdio.h>
+
 #define str(a,b) #a "_" #b
 
 #define OFFSET(s_type, field) ((unsigned int)&(((s_type*)0)->field))