[Bug c++/84400] “linux” string in path replaced with “1” when using “<>” angle brackets to include a header through a macro
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 15 09:46:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84400
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
linux is a predefined macro only when using the GNU extensions, so just compile
with -std=c++{98,11,14,17,2a} or -ansi and it won't be defined (only __linux__,
__linux and __gnu_linux__ will be).
More information about the Gcc-bugs
mailing list