Add strings.h

Jeff Johnston jjohnstn@redhat.com
Wed Dec 8 09:13:00 GMT 2010


On 12/07/2010 05:03 PM, Eric Blake wrote:
> On 12/07/2010 10:32 AM, Jeff Johnston wrote:
>>> I suppose that would work as well, although my change is a one-liner.
>>> It's just that I don't have maintainer rights to approve your patch
>>> (although it does look okay to me, modulo the one #if line condition);
>>> so it's now time for Jeff or Corinna to speak up.
>>>
>>
>> Ralf's initial patch has just been applied.
>
> Any objections to pushing this?
>

I'm fine with it.

-- Jeff J

> 2010-12-07  Eric Blake<eblake@redhat.com>
>
> 	* libc/include/strings.h: Don't declare removed functions when
> 	requesting POSIX 2008 compliance.
>
> diff --git a/newlib/libc/include/strings.h b/newlib/libc/include/strings.h
> index 1d5bda6..5ed846f 100644
> --- a/newlib/libc/include/strings.h
> +++ b/newlib/libc/include/strings.h
> @@ -15,7 +15,7 @@
>
>   _BEGIN_STD_C
>
> -#ifndef __STRICT_ANSI__
> +#if !defined __STRICT_ANSI__&&  _POSIX_VERSION<  200809L
>   /*
>    * Marked LEGACY in Open Group Base Specifications Issue 6/IEEE Std
> 1003.1-2004
>    * Removed from Open Group Base Specifications Issue 7/IEEE Std 1003.1-2008
>
>



More information about the Newlib mailing list