Include HsVersions.h where necessary
authorRoman Leshchinskiy <rl@cse.unsw.edu.au>
Wed, 23 Apr 2008 04:28:20 +0000 (04:28 +0000)
committerRoman Leshchinskiy <rl@cse.unsw.edu.au>
Wed, 23 Apr 2008 04:28:20 +0000 (04:28 +0000)
compiler/cmm/CLabel.hs
compiler/cmm/PprC.hs
compiler/main/DriverPhases.hs
compiler/nativeGen/PositionIndependentCode.hs
compiler/nativeGen/PprMach.hs
compiler/typecheck/TcForeign.lhs

index 3c06129..cb07d06 100644 (file)
@@ -111,6 +111,8 @@ module CLabel (
        pprCLabel
     ) where
 
+#include "HsVersions.h"
+
 import StaticFlags
 import Packages
 import DataCon
index 7c4ca1c..3673e7c 100644 (file)
@@ -30,6 +30,8 @@ module PprC (
         pprStringInCStyle 
   ) where
 
+#include "HsVersions.h"
+
 -- Cmm stuff
 import Cmm
 import CLabel
index 2013f44..8d8fec4 100644 (file)
@@ -33,6 +33,8 @@ module DriverPhases (
    isSourceFilename         -- :: FilePath -> Bool
  ) where
 
+#include "HsVersions.h"
+
 import Panic           ( panic )
 import System.FilePath
 
index 3f32c38..0473d91 100644 (file)
@@ -14,6 +14,8 @@ module PositionIndependentCode (
         initializePicBase
      ) where
 
+#include "HsVersions.h"
+
 {-
   This module handles generation of position independent code and
   dynamic-linking related issues for the native code generator.
index 64fa024..a9621d4 100644 (file)
@@ -24,6 +24,8 @@ module PprMach (
        pprInstr, pprSize, pprUserReg
   ) where
 
+#include "HsVersions.h"
+
 import Cmm
 import MachOp          ( MachRep(..), wordRep, isFloatingRep )
 import MachRegs                -- may differ per-platform
index 57ef40a..59009ac 100644 (file)
@@ -25,6 +25,8 @@ module TcForeign
         , tcForeignExports
        ) where
 
+#include "HsVersions.h"
+
 import HsSyn
 
 import TcRnMonad