This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib 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] |
At 19.01 01/09/2002, you wrote:
Shouldn't this be something to be specified in configure.host? Technically, Cygwin is not the only Unix platform based on Windows NT+#ifndef WCHAR_MIN +#define WCHAR_MIN 0 +#endif + +#ifndef WCHAR_MAX +#ifdef CYGWIN +/* assume wchar_t = ushort and the max is the last char in UCS-2. */ +#define WCHAR_MAX USHRT_MAX +#else +/* assume wchar_t = int and the max is the last char in UCS-4. */ +#define WCHAR_MAX INT_MAX +#endif +#endif
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |