This is the mail archive of the libc-alpha@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]

int8_t problem


Hello,

Using
gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)
glibc-devel Version: 2.3.5-5mdk Architecture: i586 Size: 9997 KB

I found that int8_t is defined in both;

stdint.h and sys/types.h

in different ways.

Depending on what I include I get different definitions.



Added to that, in sys/types.h __attribute__ is used in
the definition.

My Lint (Gimpel) doesn't know about __attribute__ so it ignores it.
This results in different definitions of int8_t.
When stdint.h is included int8_t is signed char and when
sys/types.h is included int8_t is int and my lint starts
issuing false positives.


What should I do?


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