This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/3301] New: compile error at linux/stddef.h:14 - 'true' defined
- From: "ebuddington at wesleyan dot edu" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 4 Oct 2006 15:29:18 -0000
- Subject: [Bug libc/3301] New: compile error at linux/stddef.h:14 - 'true' defined
- Reply-to: sourceware-bugzilla at sourceware dot org
Under linux-2.6.18-mm2, linux/stddef contains the following:
enum { false = 0, true = 1 };
Compiling getdents.c (using gcc-4.1.1) fails with the error:
/usr/local/include/linux/stddef.h:14: error: expected identifier before numeric
constant
Repeating the failed gcc invocation with -E shows me
# 13 "/usr/local/include/linux/stddef.h" 3
enum {
0 = 0,
1 = 1
};
I can't find where 'true' and 'false' are #defined, as I presume they are. If
this isn't a glibc bug, I'd appreciate thoughts on where the problem lies.
--
Summary: compile error at linux/stddef.h:14 - 'true' defined
Product: glibc
Version: 2.4
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: ebuddington at wesleyan dot edu
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=3301
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.