[project @ 2003-07-21 15:05:54 by simonmar]
authorsimonmar <unknown>
Mon, 21 Jul 2003 15:05:54 +0000 (15:05 +0000)
committersimonmar <unknown>
Mon, 21 Jul 2003 15:05:54 +0000 (15:05 +0000)
We use NULL in the headers (at least when -prof is on), so we better
#include <stdlib.h>.  We normally get it via HsBase.h anyway, but we
shouldn't rely on that.

ghc/includes/Stg.h

index 17568b5..001ca55 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Stg.h,v 1.52 2003/05/29 14:39:30 sof Exp $
+ * $Id: Stg.h,v 1.53 2003/07/21 15:05:54 simonmar Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
@@ -118,6 +118,13 @@ void _stgAssert (char *, unsigned int);
 #define doNothing() do { } while (0)
 
 /* -----------------------------------------------------------------------------
+   System headers
+   -------------------------------------------------------------------------- */
+
+// Needed so that we can use NULL
+#include <stdlib.h>
+
+/* -----------------------------------------------------------------------------
    Global type definitions
    -------------------------------------------------------------------------- */