This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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]

Re: [PATCH] Rework handling of basename variants


On Jul  6 13:10, Yaakov Selkowitz wrote:
> As a commonly-included header, the #define basename in <string.h> can
> affect code which uses "basename" for its own purposes (e.g. struct
> members or C++ namespaced functions).  When such cases occur and some
> code includes <string.h> and some not, then errors result.  OTOH,
> <libgen.h> is rarely used, and that's where the renaming occurs in
> glibc, so code using <libgen.h> should already be safe.
> ---
>  newlib/libc/include/libgen.h | 5 +++--
>  newlib/libc/include/string.h | 4 ++--
>  2 files changed, 5 insertions(+), 4 deletions(-)

Apart from the missing ChangeLog entry, the patch is ok.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: pgpXFcTkIhtVk.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]