[PATCH, libstdc++-v3] Fix import of wide character related symbols in stdlib.h wraper

Andris Pavenis andris.pavenis@iki.fi
Tue Jan 26 04:40:00 GMT 2016


include/c_compatibility/stdlib.h imports wide character related symbols
into global namespace unconditionaly which causes libstdc++-v3 build
to fail when one or both of _GLIBCXX_USE_WCHAR_T and _GLIBCXX_HAVE_MBSTATE_T
are not defined.

Included patch changes it to import them into global namespace only
when they are defined in cstdlib

Andris

2016-01-26  Andris Pavenis  <andris.pavenis@iki.fi>

     * include/c_compatibility/stdlib.h: Include wide character related
     definitions only when they are available in cstdlib.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-PATCH-libstdc-v3-Fix-use-use-wide-character-related-.patch
Type: text/x-patch
Size: 1223 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20160126/b0a607e5/attachment.bin>


More information about the Libstdc++ mailing list