diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-02-26 01:30:36 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-02-26 01:30:36 -0500 |
commit | d1eae83a593309842550988e9c56492fac9cdece (patch) | |
tree | 074d2ba1f1c7dc7b56c8b736ff9c195a39b61aad /include | |
parent | e864ddc36819814b3b9ed17620459d66add512d3 (diff) | |
download | musl-d1eae83a593309842550988e9c56492fac9cdece.tar.gz musl-d1eae83a593309842550988e9c56492fac9cdece.tar.bz2 musl-d1eae83a593309842550988e9c56492fac9cdece.tar.xz musl-d1eae83a593309842550988e9c56492fac9cdece.zip |
namespace conformance to latest standards in strings.h
Diffstat (limited to 'include')
-rw-r--r-- | include/strings.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/strings.h b/include/strings.h index 345c6517..2b7e086c 100644 --- a/include/strings.h +++ b/include/strings.h @@ -10,15 +10,17 @@ extern "C" { #define __NEED_locale_t #include <bits/alltypes.h> - +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_POSIX_SOURCE) \ + || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE+0 < 200809L) \ + || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700) int bcmp (const void *, const void *, size_t); void bcopy (const void *, void *, size_t); void bzero (void *, size_t); - -int ffs (int); - char *index (const char *, int); char *rindex (const char *, int); +#endif + +int ffs (int); int strcasecmp (const char *, const char *); int strncasecmp (const char *, const char *, size_t); |