@@ -150,10 +150,6 @@ $(H2 $(LNAME2 preprocessor, Preprocessor))
150150 $(LI Otherwise the $(TT cpp) preprocessor will be used.)
151151 )
152152
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-
157153 $(P The $(DDSUBLINK dmd, switch-v, $(TT -v)) switch can be used to observe the command
158154 that invokes the preprocessor.
159155 )
@@ -162,6 +158,19 @@ $(H2 $(LNAME2 preprocessor, Preprocessor))
162158 to the preprocessor.
163159 )
164160
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.)
165174
166175 $(H3 $(LNAME2 manual-cpp, Running the Preprocessor Manually))
167176
0 commit comments