patch applied (cabal): Add auto-generated CPP macros for package version testing
Mon Aug 11 10:30:16 PDT 2008 Simon Marlow <marlowsd@gmail.com> * Add auto-generated CPP macros for package version testing Now when using CPP you get MIN_VERSION_<package>(A,B,C) for each <package> in build-depends, which is true if the version of <package> in use is >= A.B.C, using the normal ordering on version numbers. This is done by auto-generating a header file dist/build/autogen/cabal_macros.h, and passing a -include flag when running CPP. M ./Distribution/Simple/Build.hs -2 +43 M ./Distribution/Simple/BuildPaths.hs +3 M ./Distribution/Simple/GHC.hs +2 M ./Distribution/Simple/PreProcess.hs -3 +9 M ./doc/Cabal.xml +41 View patch online: http://darcs.haskell.org/cabal/_darcs/patches/20080811173016-12142-850c66ab1...
participants (1)
-
Simon Marlow