Changeset View
Changeset View
Standalone View
Standalone View
devel/hs-c2hs/files/patch-src_C2HS_Config.hs
Show All 17 Lines | |||||
-- * @-P@ would suppress @#line@ directives | -- * @-P@ would suppress @#line@ directives | ||||
-- | -- | ||||
cppopts :: [String] | cppopts :: [String] | ||||
cppopts = case (os,cpp) of | cppopts = case (os,cpp) of | ||||
-- why is gcc different between all these platforms? | -- why is gcc different between all these platforms? | ||||
("openbsd","cpp") -> ["-xc"] | ("openbsd","cpp") -> ["-xc"] | ||||
- (_,"cpp") -> ["-x", "c"] | - (_,"cpp") -> ["-x", "c"] | ||||
- (_,"gcc") -> ["-E", "-x", "c"] | - (_,"gcc") -> ["-E", "-x", "c"] | ||||
+ (_,"cpp") -> ["-x", "c", "-std=c99"] | + (_,"cpp") -> ["-x", "c"] | ||||
tcberner: Were there build failures when you left that in? If not I would opt to keep it to be on the… | |||||
+ (_,"gcc") -> ["-E", "-x", "c", "-std=c99"] | + (_,"gcc") -> ["-E", "-x", "c"] | ||||
_ -> [] | _ -> [] | ||||
-- | C2HS Library file name | -- | C2HS Library file name |
Were there build failures when you left that in? If not I would opt to keep it to be on the safe side.