Line
Link Here
|
0 |
-- stlport5.1.orig/stlport/stl/_cwchar.h |
0 |
++ stlport5.1/stlport/stl/_cwchar.h |
Lines 105-122
Link Here
|
105 |
# define WCHAR_MAX ((wchar_t)~0) |
105 |
# define WCHAR_MAX ((wchar_t)~0) |
106 |
# endif |
106 |
# endif |
107 |
# endif |
107 |
# endif |
108 |
# if defined (__GNUC__) && defined (__alpha__) |
|
|
109 |
/* Definition of WCHAR_MIN and MAX are wrong for alpha platform |
110 |
* as gcc consider wchar_t as an unsigned type. Static assertion are |
111 |
* here to check that a future alpha SDK or a future gcc won't change the |
112 |
* situation making this workaround useless. |
113 |
*/ |
114 |
_STLP_STATIC_ASSERT(((wchar_t)-1 > 0) && (WCHAR_MIN < 0)) |
115 |
# undef WCHAR_MIN |
116 |
# define WCHAR_MIN 0 |
117 |
# undef WCHAR_MAX |
118 |
# define WCHAR_MAX ((wchar_t)~0) |
119 |
# endif |
120 |
# if defined(__HP_aCC) && (__HP_aCC >= 60000) |
108 |
# if defined(__HP_aCC) && (__HP_aCC >= 60000) |
121 |
/* Starting with B.11.31, HP-UX/ia64 provides C99-compliant definitions |
109 |
/* Starting with B.11.31, HP-UX/ia64 provides C99-compliant definitions |
122 |
* of WCHAR_MIN/MAX macros without having to define |
110 |
* of WCHAR_MIN/MAX macros without having to define |