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).
This commit is contained in:
parent
0c7294ef30
commit
2e5dfa515f
3 changed files with 7 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue