[PATCH] D33080: [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows
Eric Fiselier via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 10 16:31:46 PDT 2017
EricWF created this revision.
Herald added a subscriber: krytarowski.
This patch improves how libc++ handles min/max macros within the headers. Previously libc++ would undef them and emit a warning.
This patch changes libc++ to use `#pragma push_macro` to save the macro before undefining it, and `#pragma pop_macro` to restore the macros and the end of the header.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 32297 bytes
Desc: not available
More information about the cfe-commits