This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10990] Inconsistent definition of int64_t in sys/types and stdint.h
- From: "john at johnmaddock dot co dot uk" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Nov 2009 17:35:56 -0000
- Subject: [Bug libc/10990] Inconsistent definition of int64_t in sys/types and stdint.h
- References: <20091120005823.10990.mateusz@loskot.net>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From john at johnmaddock dot co dot uk 2009-11-22 17:35 -------
The point here is that stdint.h behaves differently depending upon what has been
#included previously, for example:
#include <sys/types.h> // possibly included from some deep dependency
#include <stdint.h>
May *NOT* result in int64_t being defined if __GLIBC_HAVE_LONG_LONG
is not set, where as had stdint.h been the first include then it *would* have
been defined.
In other words stdint.h may not follow the C99 std depending upon what has
happened to be included previously.
Still think it's not a bug?
IMO stdint.h should always define int64_t no matter what other headers may have
been included first.
John Maddock.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |john at johnmaddock dot co
| |dot uk
Status|RESOLVED |REOPENED
Resolution|INVALID |
http://sourceware.org/bugzilla/show_bug.cgi?id=10990
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.