diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-01-12 10:55:09 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-01-12 10:55:09 +0000 |
commit | 38305196bf69c2aaf7ad310b96bbdfe929ef24d3 (patch) | |
tree | 04dc234f7f37d52fb3c4606d01b6baccfc89de34 /newlib/libc/include/string.h | |
parent | 8af6a76ee625658f22403b5fb1f97409307cca4f (diff) | |
download | newlib-38305196bf69c2aaf7ad310b96bbdfe929ef24d3.zip newlib-38305196bf69c2aaf7ad310b96bbdfe929ef24d3.tar.gz newlib-38305196bf69c2aaf7ad310b96bbdfe929ef24d3.tar.bz2 |
* libc/include/string.h: Fix preprocessor expressions using
_XOPEN_SOURCE.
Diffstat (limited to 'newlib/libc/include/string.h')
-rw-r--r-- | newlib/libc/include/string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h index f9217f5..d11d32c 100644 --- a/newlib/libc/include/string.h +++ b/newlib/libc/include/string.h @@ -64,13 +64,13 @@ int _EXFUN(strcasecmp,(const char *, const char *)); char *_EXFUN(strcasestr,(const char *, const char *)); char *_EXFUN(strchrnul,(const char *, int)); #endif -#if !defined(__STRICT_ANSI__) || (_XOPEN_SOURCE >= 500) +#if !defined(__STRICT_ANSI__) || (_XOPEN_SOURCE - 0) >= 500 char *_EXFUN(strdup,(const char *)); #endif #ifndef __STRICT_ANSI__ char *_EXFUN(_strdup_r,(struct _reent *, const char *)); #endif -#if !defined(__STRICT_ANSI__) || (_XOPEN_SOURCE >= 700) +#if !defined(__STRICT_ANSI__) || (_XOPEN_SOURCE - 0) >= 700 char *_EXFUN(strndup,(const char *, size_t)); #endif #ifndef __STRICT_ANSI__ |