summaryrefslogtreecommitdiff
path: root/include/wctype.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-08-02 18:14:44 -0400
committerRich Felker <dalias@aerifal.cx>2013-08-02 18:14:44 -0400
commit2e5dfa515f78f5a67eb0cd7e323ab6f3ed76c15d (patch)
tree4e816a3068b164bd62551f58b175e76b96c7720a /include/wctype.h
parent0c7294ef30544f825430a3692c717f6f470974fe (diff)
downloadmusl-2e5dfa515f78f5a67eb0cd7e323ab6f3ed76c15d.tar.gz
fix feature test macro logic for _BSD_SOURCE
in several places, _BSD_SOURCE was not even implying POSIX, resulting in it being subtractive rather than additive (compared to the default features).
Diffstat (limited to 'include/wctype.h')
-rw-r--r--include/wctype.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/wctype.h b/include/wctype.h
index 8c544f24..3ac24f13 100644
--- a/include/wctype.h
+++ b/include/wctype.h
@@ -11,7 +11,7 @@ extern "C" {
#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
@@ -47,7 +47,7 @@ wctype_t wctype(const char *);
#define iswdigit(a) (((unsigned)(a)-L'0') < 10)
#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);