diff options
author | Andreas Schwab <schwab@suse.de> | 2014-06-12 14:42:57 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2014-06-16 10:21:31 +0200 |
commit | 3d7c00e3a944e07a74fc1c18e342ed7f38b2d88e (patch) | |
tree | d4dad4402d126e2aab965272ad6347cb61be6457 /string/bits | |
parent | 6957fb3150410b3b64fd508901b5e006173156b4 (diff) | |
download | glibc-3d7c00e3a944e07a74fc1c18e342ed7f38b2d88e.zip glibc-3d7c00e3a944e07a74fc1c18e342ed7f38b2d88e.tar.gz glibc-3d7c00e3a944e07a74fc1c18e342ed7f38b2d88e.tar.bz2 |
Update feature guard for strdup/strndup in <bits/string2.h>
Diffstat (limited to 'string/bits')
-rw-r--r-- | string/bits/string2.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/string/bits/string2.h b/string/bits/string2.h index 1b6a1ef..0523a27 100644 --- a/string/bits/string2.h +++ b/string/bits/string2.h @@ -1287,7 +1287,7 @@ extern char *__strdup (const char *__string) __THROW __attribute_malloc__; __retval; })) \ : __strdup (s))) -# if defined __USE_MISC || defined __USE_XOPEN_EXTENDED +# if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 # define strdup(s) __strdup (s) # endif # endif @@ -1315,7 +1315,7 @@ extern char *__strndup (const char *__string, size_t __n) __retval; })) \ : __strndup (s, n))) -# ifdef __USE_GNU +# ifdef __USE_XOPEN2K8 # define strndup(s, n) __strndup (s, n) # endif # endif |