[haiku-development] patch to stdint.h and issues

From: "Curtis Wanner" <katisu@xxxxxxxxxxx>

To: haiku-development@xxxxxxxxxxxxx

Date: Thu, 13 Mar 2008 20:53:47 EST

Alright, I updated stdint.h as much as possible to the C99 standard.
Added some additional limit macros and the constant macros.
According to the standard, the limit macros should not be defined for C
++ unless __STDC_LIMIT_MACROS is defined. Since Mediadefs.cpp and
STXTTranslator.cpp use these, I added #define __STDC_LIMIT_MACROS to
these files (otherwise it breaks build).
Also, the standard says WCHAR_MIN and WCHAR_MAX are to be defined here,
but I get a mess of warnings since glibc appears to define them first.
Not sure the best way to resolve this at this point, so I commented
those two out for the moment and put a ToDo.
Since int32_t and uint32_t were changed from long to int type (by Axel
in r22643), I removed the L suffix from INT32_MAX and UINT32_MAX while
I was at it. Hope it was alright to do this in the same patch.
Attached are diffs to stdint.h, Mediadefs.cpp, and STXTTranslator.cpp.
Curtis