This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/3301] New: compile error at linux/stddef.h:14 - 'true' defined

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

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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]