Merge "Fix wchar.h not to redefine WCHAR_MAX/WCHAR_MIN"
This commit is contained in:
@@ -70,8 +70,11 @@ typedef enum {
|
||||
WC_TYPE_MAX
|
||||
} wctype_t;
|
||||
|
||||
#ifndef WCHAR_MAX
|
||||
#define WCHAR_MAX 255
|
||||
#define WCHAR_MIN 0
|
||||
#endif
|
||||
|
||||
#define WEOF (-1)
|
||||
|
||||
extern wint_t btowc(int);
|
||||
|
||||
@@ -70,8 +70,11 @@ typedef enum {
|
||||
WC_TYPE_MAX
|
||||
} wctype_t;
|
||||
|
||||
#ifndef WCHAR_MAX
|
||||
#define WCHAR_MAX 255
|
||||
#define WCHAR_MIN 0
|
||||
#endif
|
||||
|
||||
#define WEOF (-1)
|
||||
|
||||
extern wint_t btowc(int);
|
||||
|
||||
@@ -71,8 +71,11 @@ typedef enum {
|
||||
WC_TYPE_MAX
|
||||
} wctype_t;
|
||||
|
||||
#ifndef WCHAR_MAX
|
||||
#define WCHAR_MAX INT_MAX
|
||||
#define WCHAR_MIN INT_MIN
|
||||
#endif
|
||||
|
||||
#define WEOF ((wint_t)(-1))
|
||||
|
||||
extern wint_t btowc(int);
|
||||
|
||||
Reference in New Issue
Block a user