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]

Re: [GLIBC][PATCH v2] Remove strdup inlines


On Thu, 9 Feb 2017, Adhemerval Zanella wrote:

> Right, so if I think the condition on conform/data/string.h-data should be:
> 
> diff --git a/conform/data/string.h-data b/conform/data/string.h-data
> index 39fa76c..b7c2784 100644
> --- a/conform/data/string.h-data
> +++ b/conform/data/string.h-data
> @@ -27,7 +27,7 @@ function int strcoll_l (const char*, const char*, locale_t)
>  #endif
>  function {char*} strcpy (char*, const char*)
>  function size_t strcspn (const char*, const char*)
> -#if !defined ISO && !defined ISO99 & !defined ISO11 && !defined XPG3 && !defined POSIX && !defined POSIX2008
> +#if !defined ISO && !defined ISO99 & !defined ISO11 && !defined XPG3 && !defined POSIX && defined POSIX2008

No, just remove the && !defined POSIX2008.  Exactly one of the macros for 
individual standards will always be defined when processing the conform/ 
data.

-- 
Joseph S. Myers
joseph@codesourcery.com


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