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: Add strings.h


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?

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


-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


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