mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
* include/string.h: Only redefine strndupa if this is really for
libc code.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2007-01-13 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* include/string.h: Only redefine strndupa if this is really for
|
||||||
|
libc code.
|
||||||
|
|
||||||
2007-01-12 Ulrich Drepper <drepper@redhat.com>
|
2007-01-12 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* nscd/nscd_gethst_r.c: Minor cleanups.
|
* nscd/nscd_gethst_r.c: Minor cleanups.
|
||||||
|
@ -54,8 +54,9 @@ extern __typeof (strcasecmp_l) __strcasecmp_l;
|
|||||||
extern __typeof (strncasecmp_l) __strncasecmp_l;
|
extern __typeof (strncasecmp_l) __strncasecmp_l;
|
||||||
|
|
||||||
/* Alternative version which doesn't pollute glibc's namespace. */
|
/* Alternative version which doesn't pollute glibc's namespace. */
|
||||||
#undef strndupa
|
#ifndef NOT_IN_libc
|
||||||
#define strndupa(s, n) \
|
# undef strndupa
|
||||||
|
# define strndupa(s, n) \
|
||||||
(__extension__ \
|
(__extension__ \
|
||||||
({ \
|
({ \
|
||||||
__const char *__old = (s); \
|
__const char *__old = (s); \
|
||||||
@ -64,6 +65,7 @@ extern __typeof (strncasecmp_l) __strncasecmp_l;
|
|||||||
__new[__len] = '\0'; \
|
__new[__len] = '\0'; \
|
||||||
(char *) memcpy (__new, __old, __len); \
|
(char *) memcpy (__new, __old, __len); \
|
||||||
}))
|
}))
|
||||||
|
#endif
|
||||||
|
|
||||||
libc_hidden_proto (__mempcpy)
|
libc_hidden_proto (__mempcpy)
|
||||||
libc_hidden_proto (__stpcpy)
|
libc_hidden_proto (__stpcpy)
|
||||||
|
Reference in New Issue
Block a user