<div dir="ltr"><div dir="ltr">Hi clang people,<div><br></div><div>I'm using clang as a frontend for the LLVM ORC JIT on Windows.</div><div>When I include system headers I get long error messages. For example, with stdlib.h I get a lot of: "warning: macro expansion producing 'defined' has undefined behavior"</div><div><div><br></div></div><div><div>Is there a way to prevent these warnings? Preferably only for the system libraries.</div><div>The documentation I read suggested that system libraries shouldn't throw up these errors.</div><div><br></div><div>I tried -Wno-expansion-to-defined, -fms-extensions, -fms-compatibility-fms, -compatibility-version=14.16.27023. I also tried to reference the system library folder by -isystem, -internal-isystem and -c-isystem</div><div><br></div></div><div>None of these seemed to work. Do you have any suggestions?</div><div><br></div><div>Thanks,</div><div>Andrew</div></div></div>