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).