This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 12 Dec 2016 13:02, Wilco Dijkstra wrote: > --- a/string/string.h > +++ b/string/string.h > > +#if (defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 \ > + || __GLIBC_USE (LIB_EXT2)) > +# define strdup(s) __builtin_strdup (s) > +#endif > + > +#if defined __USE_XOPEN2K8 || __GLIBC_USE (LIB_EXT2) > +#define strndup(s,n) __builtin_strndup (s, n) > +#endif why do we need these at all ? these seem like the sort of thing that gcc should do automatically for us ? 2nd #define is missing an indent -mike
Attachment:
signature.asc
Description: Digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |