[cfe-dev] math.h on Windows

John Thompson john.thompson.jtsoftware at gmail.com
Thu Oct 29 08:34:07 PDT 2009


Thanks, Chris.

>Can this be implemented like __has_builtin is?
Oh, I totally missed this!  Yes, I'll redo it like this.
>This can be done by just not registering the 'magic' macros in
no-extensions mode.

How is no-extensions mode detected?  I was expecting a flag in LangOptions,
but I don't see it, and there is no -fno-extensions option.  There is
a -fbuiltin option and a NoBuiltin flag in LangOptions, but that seems to be
for builtin functions, not preprocessor macros.  Or perhaps it needs
adding?  I don't see an equivalent in gcc.  Or perhaps something more
specific like "-fno-magic-macros=[0|1]" or "-fno-magic-macro=(macroname)"

-John

-- 
John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091029/7156d010/attachment.html>


More information about the cfe-dev mailing list