This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/65128] New: remove "linux" and "unix" from preprocessor macros from cpp-5
- From: "shawn at churchofgit dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 Feb 2015 01:15:32 +0000
- Subject: [Bug preprocessor/65128] New: remove "linux" and "unix" from preprocessor macros from cpp-5
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65128
Bug ID: 65128
Summary: remove "linux" and "unix" from preprocessor macros
from cpp-5
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: preprocessor
Assignee: unassigned at gcc dot gnu.org
Reporter: shawn at churchofgit dot com
I just spent like a whole hour until I realized that cpp defines "linux" which
gives this confusing error:
src/systemctl/bootspec.h:40:15: error: expected identifier or â(â before
numeric constant
char *linux;
^
We should remove these defines from gcc 5, and force programs to check __unix__
and __linux__