On 14 Nov 2003 18:15:46 GMT, "Mark A. Odell" wrote in comp.arch.embedded:
The latest C standard was approved four years ago last month. It now includes a standard header, , that defines a standard syntax for naming exact width integer types:
int8_t, uint8_t, int16_t, uint16_t, and so on.
They're not the prettiest I have ever seen, but they are standard, and it's pretty easy to make your own stdint.h header to use them.
We've made them for TI DSP's (no *8_t types!), Motorola HS12, Visual C++, among others. In fact, it so happens that the stdint.h header that comes with ARM's ADS works just fine with Visual C++, right down to supporting signed and unsigned __int64 as int64_t and uint64_t.
Try using the standard ones for your next project, it will ease porting.