mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
Update feature guard for strdup/strndup in <bits/string2.h>
This commit is contained in:
parent
6957fb3150
commit
3d7c00e3a9
@ -1,3 +1,7 @@
|
||||
2014-06-16 Andreas Schwab <schwab@suse.de>
|
||||
|
||||
* string/bits/string2.h (strdup, strndup): Update feature guard.
|
||||
|
||||
2014-06-14 David S. Miller <davem@davemloft.net>
|
||||
|
||||
* sysdeps/sparc/fpu/libm-test-ulps: Update.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user