defining C macro if not defined.

This commit is contained in:
Kazu Yamamoto 2014-05-16 09:27:23 +09:00
parent e3ff15862f
commit fcc3b46415
2 changed files with 12 additions and 0 deletions

View File

@ -10,6 +10,10 @@ module Language.Haskell.GhcMod.GhcPkg (
, getPackageDbStack , getPackageDbStack
) where ) where
#ifndef MIN_VERSION_Cabal
#define MIN_VERSION_Cabal(x,y,z) 1
#endif
import Config (cProjectVersionInt) import Config (cProjectVersionInt)
import Control.Applicative ((<$>)) import Control.Applicative ((<$>))
#if MIN_VERSION_Cabal(1,18,0) #if MIN_VERSION_Cabal(1,18,0)

View File

@ -15,6 +15,14 @@ module Language.Haskell.GhcMod.Monad (
, module Control.Monad.State.Class , module Control.Monad.State.Class
) where ) where
#ifndef MIN_VERSION_ghc
#define MIN_VERSION_ghc(x,y,z) 1
#endif
#ifndef MIN_VERSION_base
#define MIN_VERSION_base(x,y,z) 1
#endif
import Language.Haskell.GhcMod.Types import Language.Haskell.GhcMod.Types
import Language.Haskell.GhcMod.Cradle import Language.Haskell.GhcMod.Cradle
import Language.Haskell.GhcMod.GHCApi import Language.Haskell.GhcMod.GHCApi