Differential D19730 Diff 55512 devel/hs-threadscope/files/patch-gtk2hs-buildtools-0.13.5.0_c2hs_toplevel_C2HSConfig.hs
Changeset View
Changeset View
Standalone View
Standalone View
devel/hs-threadscope/files/patch-gtk2hs-buildtools-0.13.5.0_c2hs_toplevel_C2HSConfig.hs
- This file was added.
--- gtk2hs-buildtools-0.13.5.0/c2hs/toplevel/C2HSConfig.hs.orig 1970-01-01 00:00:00 UTC | |||||
+++ gtk2hs-buildtools-0.13.5.0/c2hs/toplevel/C2HSConfig.hs | |||||
@@ -24,7 +24,7 @@ | |||||
-- Configuration options; largely set by `configure'. | |||||
-- | |||||
--- TODO ---------------------------------------------------------------------- | |||||
--- | |||||
+-- | |||||
module C2HSConfig ( | |||||
-- | |||||
-- programs and paths | |||||
@@ -70,8 +70,8 @@ cpp = case os of | |||||
cppopts :: [String] | |||||
cppopts = case (os,cpp) of | |||||
("openbsd","cpp") -> ["-xc", "-w"] | |||||
- (_,"cpp") -> ["-x", "c", "-w"] | |||||
- (_,"gcc") -> ["-E", "-x", "c", "-w"] | |||||
+ (_,"cpp") -> ["-x", "c", "-w", "-std=c99", "-D_Nullable=", "-D_Nonnull="] | |||||
+ (_,"gcc") -> ["-E", "-x", "c", "-w", "-std=c99", "-D_Nullable=", "-D_Nonnull="] | |||||
_ -> [] | |||||
-- C preprocessor option for including only definitions (EXPORTED) |