Change wctype_t to an unsigned type to avoid warnings.
This commit is contained in:
parent
c7dfca65ec
commit
2e02b2970d
@ -96,7 +96,7 @@ typedef _BSD_SIZE_T_ size_t;
|
||||
#endif
|
||||
|
||||
#ifndef _WCTYPE_T
|
||||
typedef long wctype_t;
|
||||
typedef unsigned long wctype_t;
|
||||
#define _WCTYPE_T
|
||||
#endif
|
||||
|
||||
|
@ -47,7 +47,7 @@ typedef int wctrans_t;
|
||||
#endif
|
||||
|
||||
#ifndef _WCTYPE_T
|
||||
typedef long wctype_t;
|
||||
typedef unsigned long wctype_t;
|
||||
#define _WCTYPE_T
|
||||
#endif
|
||||
|
||||
|
@ -61,7 +61,7 @@ wctype(const char *property)
|
||||
{ "ideogram", _CTYPE_I }, /* BSD extension */
|
||||
{ "special", _CTYPE_T }, /* BSD extension */
|
||||
{ "phonogram", _CTYPE_Q }, /* BSD extension */
|
||||
{ NULL, 0L }, /* Default */
|
||||
{ NULL, 0UL }, /* Default */
|
||||
};
|
||||
int i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user