@@ -150,10 +150,6 @@ $(H2 $(LNAME2 preprocessor, Preprocessor))
150
150
$(LI Otherwise the $(TT cpp) preprocessor will be used.)
151
151
)
152
152
153
- $(P The druntime file $(LINK2 https://github.com/dlang/dmd/blob/master/druntime/src/importc.h, $(TT src/importc.h))
154
- will automatically be $(TT #include)d first. $(TT importc.h) provides adjustments to the source code to
155
- account for various C compiler extensions not supported by ImportC.)
156
-
157
153
$(P The $(DDSUBLINK dmd, switch-v, $(TT -v)) switch can be used to observe the command
158
154
that invokes the preprocessor.
159
155
)
@@ -162,6 +158,19 @@ $(H2 $(LNAME2 preprocessor, Preprocessor))
162
158
to the preprocessor.
163
159
)
164
160
161
+ $(H4 $(LNAME2 importc-h, $(TT importc.h)))
162
+
163
+ $(P The druntime file $(LINK2 https://github.com/dlang/dmd/blob/master/druntime/src/importc.h, $(TT src/importc.h))
164
+ will automatically be $(TT #include)d first. $(TT importc.h) provides adjustments to the source code to
165
+ account for various C compiler extensions not supported by ImportC.)
166
+
167
+ $(H4 $(LNAME2 no-builtin-macro-redefined, no-builtin-macro-redefined))
168
+
169
+ $(P On Posix systems, ImportC will pass the switch $(TT -Wno-builtin-macro-redefined) to the C preprocessor
170
+ used by $(TT gcc) and $(TT clang).
171
+ This $(LINK2 https://gcc.gnu.org/legacy-ml/gcc-patches/2008-07/msg02321.html, switch)
172
+ does not exist in $(TT gcc) preprocessors made before 2008.
173
+ The workaround is to run the preprocessor manually.)
165
174
166
175
$(H3 $(LNAME2 manual-cpp, Running the Preprocessor Manually))
167
176
0 commit comments