[patch] libstdc++/69581 Don't define guard macros when doing #include_next in math.h and stdlib.h

Jonathan Wakely jwakely@redhat.com
Mon Feb 1 11:24:00 GMT 2016


The new <math.h> and <stdlib.h> wrapper headers should not define
their guard macros when being included in "pass-through" mode, i.e.
when _GLIBCXX_INCLUDE_NEXT_C_HEADERS is defined. This patch allows the
wrapper to pass-through as many layers of wrapper headers as needed
until the real C library header is found.

Tested powerpc64-linux, committed to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 1929 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20160201/f96bb1bd/attachment.bin>


More information about the Libstdc++ mailing list