From 78bbce57e04a29541b7343f0b188a20cef956187 Mon Sep 17 00:00:00 2001 From: Roman Leshchinskiy Date: Wed, 23 Apr 2008 04:28:20 +0000 Subject: [PATCH] Include HsVersions.h where necessary --- compiler/cmm/CLabel.hs | 2 ++ compiler/cmm/PprC.hs | 2 ++ compiler/main/DriverPhases.hs | 2 ++ compiler/nativeGen/PositionIndependentCode.hs | 2 ++ compiler/nativeGen/PprMach.hs | 2 ++ compiler/typecheck/TcForeign.lhs | 2 ++ 6 files changed, 12 insertions(+) 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 -- 1.7.10.4