summaryrefslogtreecommitdiff
path: root/ghc/includes/mkDerivedConstants.c
diff options
context:
space:
mode:
authorsimonmar <unknown>2005-02-23 10:54:52 +0000
committersimonmar <unknown>2005-02-23 10:54:52 +0000
commit25d3ecc4ebe5eb9a2f76f5de50496aba47e22795 (patch)
tree9706e6bbb73c76df358e9bc98d5ba82f615586d1 /ghc/includes/mkDerivedConstants.c
parentd412004eed81916595f3bff515193aeb68b6abf8 (diff)
downloadhaskell-25d3ecc4ebe5eb9a2f76f5de50496aba47e22795.tar.gz
[project @ 2005-02-23 10:54:52 by simonmar]
more include of <stdio.h> later: ghcautoconf.h must come before any system includes, because it might define _FILE_OFFSET_BITS.
Diffstat (limited to 'ghc/includes/mkDerivedConstants.c')
-rw-r--r--ghc/includes/mkDerivedConstants.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ghc/includes/mkDerivedConstants.c b/ghc/includes/mkDerivedConstants.c
index 77a35bcfd0..8587fa7090 100644
--- a/ghc/includes/mkDerivedConstants.c
+++ b/ghc/includes/mkDerivedConstants.c
@@ -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))