This is the mail archive of the glibc-bugs@sourceware.org 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/3038] missing ifdefined check in posix/types.h


------- 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.


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