From: Roman Leshchinskiy Date: Wed, 23 Apr 2008 04:28:20 +0000 (+0000) Subject: Include HsVersions.h where necessary X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=78bbce57e04a29541b7343f0b188a20cef956187;hp=ba09ea0db4572548cb763f8518e78c23d32dc712;p=ghc-hetmet.git Include HsVersions.h where necessary --- diff --git a/compiler/cmm/CLabel.hs b/compiler/cmm/CLabel.hs index 3c06129..cb07d06 100644 --- a/compiler/cmm/CLabel.hs +++ b/compiler/cmm/CLabel.hs @@ -111,6 +111,8 @@ module CLabel ( pprCLabel ) where +#include "HsVersions.h" + import StaticFlags import Packages import DataCon diff --git a/compiler/cmm/PprC.hs b/compiler/cmm/PprC.hs index 7c4ca1c..3673e7c 100644 --- a/compiler/cmm/PprC.hs +++ b/compiler/cmm/PprC.hs @@ -30,6 +30,8 @@ module PprC ( pprStringInCStyle ) where +#include "HsVersions.h" + -- Cmm stuff import Cmm import CLabel diff --git a/compiler/main/DriverPhases.hs b/compiler/main/DriverPhases.hs index 2013f44..8d8fec4 100644 --- a/compiler/main/DriverPhases.hs +++ b/compiler/main/DriverPhases.hs @@ -33,6 +33,8 @@ module DriverPhases ( isSourceFilename -- :: FilePath -> Bool ) where +#include "HsVersions.h" + import Panic ( panic ) import System.FilePath diff --git a/compiler/nativeGen/PositionIndependentCode.hs b/compiler/nativeGen/PositionIndependentCode.hs index 3f32c38..0473d91 100644 --- a/compiler/nativeGen/PositionIndependentCode.hs +++ b/compiler/nativeGen/PositionIndependentCode.hs @@ -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. diff --git a/compiler/nativeGen/PprMach.hs b/compiler/nativeGen/PprMach.hs index 64fa024..a9621d4 100644 --- a/compiler/nativeGen/PprMach.hs +++ b/compiler/nativeGen/PprMach.hs @@ -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 diff --git a/compiler/typecheck/TcForeign.lhs b/compiler/typecheck/TcForeign.lhs index 57ef40a..59009ac 100644 --- a/compiler/typecheck/TcForeign.lhs +++ b/compiler/typecheck/TcForeign.lhs @@ -25,6 +25,8 @@ module TcForeign , tcForeignExports ) where +#include "HsVersions.h" + import HsSyn import TcRnMonad