#include "Rts.h"
#include "RtsUtils.h"
#include "RtsFlags.h"
+#include <stdlib.h>
/* Heavily arch-specific, I'm afraid.. */
/* -----------------------------------------------------------------------------
- * $Id: Linker.c,v 1.99 2002/07/17 08:26:44 simonmar Exp $
+ * $Id: Linker.c,v 1.100 2002/07/18 06:05:29 sof Exp $
*
* (c) The GHC Team, 2000, 2001
*
#elif defined(cygwin32_TARGET_OS) || defined (mingw32_TARGET_OS)
# define OBJFORMAT_PEi386
# include <windows.h>
+# include <math.h>
#elif defined(darwin_TARGET_OS)
# define OBJFORMAT_MACHO
# include <mach-o/loader.h>
/* -----------------------------------------------------------------------------
- * $Id: Main.c,v 1.34 2002/02/13 08:48:06 sof Exp $
+ * $Id: Main.c,v 1.35 2002/07/18 06:05:30 sof Exp $
*
* (c) The GHC Team 1998-2000
*
#include "RtsFlags.h"
#include "RtsUtils.h"
#include "Prelude.h"
+#include <stdlib.h>
#ifdef DEBUG
# include "Printer.h" /* for printing */
/* -----------------------------------------------------------------------------
- * $Id: StgMiscClosures.hc,v 1.76 2002/04/19 10:22:58 simonmar Exp $
+ * $Id: StgMiscClosures.hc,v 1.77 2002/07/18 06:05:30 sof Exp $
*
* (c) The GHC Team, 1998-2000
*
# include "StgRun.h" /* for StgReturn and register saving */
#endif
-#ifdef HAVE_STDIO_H
-#include <stdio.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
#endif
/* ToDo: make the printing of panics more win32-friendly, i.e.,
/* -----------------------------------------------------------------------------
- * $Id: NoRunnableThreads.c,v 1.3 2002/07/17 09:21:51 simonmar Exp $
+ * $Id: NoRunnableThreads.c,v 1.4 2002/07/18 06:05:31 sof Exp $
*
* User-overridable RTS hooks.
*
#include "Rts.h"
#include <stdio.h>
+#include <stdlib.h>
/*
Hook to invoke when there's nothing left on the runnable threads