This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/3038] missing ifdefined check in posix/types.h
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 14 Aug 2006 07:39:59 -0000
- Subject: [Bug libc/3038] missing ifdefined check in posix/types.h
- References: <20060813205019.3038.mws@twisted-brains.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2006-08-14 07:39 -------
If you bothered to grep for __int8_t_defined, you'd find the answer easily
yourself. Both <sys/types.h> and <stdint.h> provide the int8_t, int16_t, etc.
signed typedefs, so of course it has to work properly no matter which one of
these is included first.
But, <sys/types.h> provides u_int8_t, u_int16_t, ... etc. unsigned typedefs,
while <stdint.h> provides uint8_t, uint16_t, etc. unsigned typedefs.
So, as you can see, for signed types the ifndef around is needed, while
for unsigned it is not.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=3038
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.