Include hschooks.h via a global option to get ghc_strlen's
prototype. It's too omnipresent for per-file OPTIONS.
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.216 2002/04/22 14:54:09 simonmar Exp $
+# $Id: Makefile,v 1.217 2002/05/11 10:02:21 panne Exp $
main/SysTools_HC_OPTS += '-\#include <windows.h>' '-\#include <process.h>'
endif
main/SysTools_HC_OPTS += '-\#include <windows.h>' '-\#include <process.h>'
endif
+# ghc_strlen percolates through so many modules that it is easier to get its
+# prototype via a global option instead of a myriad of per-file OPTIONS
+SRC_HC_OPTS += '-\#include "hschooks.h"'
+
# ----------------------------------------------------------------------------
# Generate supporting stuff for prelude/PrimOp.lhs
# from prelude/primops.txt
# ----------------------------------------------------------------------------
# Generate supporting stuff for prelude/PrimOp.lhs
# from prelude/primops.txt
-{-# OPTIONS -#include "hschooks.h" #-}
-
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
--- $Id: DriverFlags.hs,v 1.92 2002/04/22 16:06:36 simonpj Exp $
+-- $Id: DriverFlags.hs,v 1.93 2002/05/11 10:02:22 panne Exp $
import GHC.Base ( unpackCString# )
#endif
import GHC.Base ( unpackCString# )
#endif
-import PrimPacked ( strLength )
-
#if __GLASGOW_HASKELL__ < 411
import PrelAddr ( Addr(..) )
#else
#if __GLASGOW_HASKELL__ < 411
import PrelAddr ( Addr(..) )
#else
subsystem, mostly.
\begin{code}
subsystem, mostly.
\begin{code}
-{-# OPTIONS -monly-3-regs -optc-DNON_POSIX_SOURCE -#include "hschooks.h" #-}
+{-# OPTIONS -monly-3-regs -optc-DNON_POSIX_SOURCE #-}
module PrimPacked
(
strLength, -- :: _Addr -> Int
module PrimPacked
(
strLength, -- :: _Addr -> Int