You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-haskell/gtk2hs-buildtools/files/gtk2hs-buildtools-0.12.3-wo...

20 lines
758 B

diff --git a/c2hs/toplevel/Main.hs b/c2hs/toplevel/Main.hs
index 47ddd0a..f921c8d 100644
--- a/c2hs/toplevel/Main.hs
+++ b/c2hs/toplevel/Main.hs
@@ -363,9 +363,11 @@ execute opts args | Help `elem` opts = help
preCompFile <- getSwitch preCompSB
- unless (preCompFile==Nothing) $
- preCompileHeader headerFile (fromJust preCompFile)
- `fatalsHandledBy` ioErrorHandler
+ -- broken when .chs contains C preproc code:
+ -- http://www.mail-archive.com/gtk2hs-devel@lists.sourceforge.net/msg01160.html
+ -- unless (preCompFile==Nothing) $
+ -- preCompileHeader headerFile (fromJust preCompFile)
+ -- `fatalsHandledBy` ioErrorHandler
let bndFileWithoutSuffix = stripSuffix bndFile
unless (null bndFile) $ do