projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make arch __set_thread_area backends hidden
[oweals/musl.git]
/
include
/
wctype.h
diff --git
a/include/wctype.h
b/include/wctype.h
index f7be2cb03849f735b4bcbac5ae4e050da3b96e7f..bc2420d3fd84756c11bc575b41224266baf18925 100644
(file)
--- a/
include/wctype.h
+++ b/
include/wctype.h
@@
-5,19
+5,22
@@
extern "C" {
#endif
extern "C" {
#endif
+#include <features.h>
+
#define __NEED_wint_t
#define __NEED_wint_t
-#define __NEED_wctrans_t
#define __NEED_wctype_t
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
#define __NEED_wctype_t
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
- || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
+ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|| defined(_BSD_SOURCE)
#define __NEED_locale_t
#endif
#include <bits/alltypes.h>
#define __NEED_locale_t
#endif
#include <bits/alltypes.h>
+typedef const int * wctrans_t;
+
#undef WEOF
#undef WEOF
-#define WEOF
(-1)
+#define WEOF
0xffffffffU
#undef iswdigit
#undef iswdigit
@@
-40,11
+43,13
@@
wint_t towupper(wint_t);
wctrans_t wctrans(const char *);
wctype_t wctype(const char *);
wctrans_t wctrans(const char *);
wctype_t wctype(const char *);
+#ifndef __cplusplus
#undef iswdigit
#undef iswdigit
-#define iswdigit(a) (((unsigned)(a)-L'0') < 10)
+#define iswdigit(a) (0 ? iswdigit(a) : ((unsigned)(a)-'0') < 10)
+#endif
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
- || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
+ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|| defined(_BSD_SOURCE)
int iswalnum_l(wint_t, locale_t);
int iswalpha_l(wint_t, locale_t);
int iswalnum_l(wint_t, locale_t);
int iswalpha_l(wint_t, locale_t);