This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/69473] system identification macros not documented
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 26 Jan 2016 00:07:17 +0000
- Subject: [Bug preprocessor/69473] system identification macros not documented
- Auto-submitted: auto-generated
- References: <bug-69473-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69473
--- Comment #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
__linux__ and __linux should always be defined for systems with the Linux
kernel (plain linux only in non-ISO modes); __gnu_linux__ for systems with
the Linux kernel and glibc (the nearest thing to the concept of GNU/Linux
systems available to GCC). That should work for all systems using
config/linux.h, which covers most but not all targets using the Linux
kernel.