[cfe-commits] [PATCH] libc++: undefine possible macro definitions coming from the standard c library

Daniel Mierswa impulze at impulze.org
Sun Sep 4 14:52:44 PDT 2011


In my implementation those were macros and thus std::getc/putc were expanded to i.e.
std::_IO_getc and so on.
According to the standard those may be macros, so I'd think that undefining them
before using the functions is the way to go.

-- 
Mierswa, Daniel

If you still don't like it, that's ok: that's why I'm boss. I simply know better than you do.
               --- Linus Torvalds, comp.os.linux.advocacy, 1996/07/22
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: second.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110904/17d6c87f/attachment.ksh>


More information about the cfe-commits mailing list