This is the mail archive of the newlib-cvs@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]

[newlib-cygwin] Feature test macros overhaul: strings.h


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=6fe6a822ee64a63017a85bcc9006969e2d53a532

commit 6fe6a822ee64a63017a85bcc9006969e2d53a532
Author: Yaakov Selkowitz <yselkowi@redhat.com>
Date:   Mon Mar 14 17:20:38 2016 -0500

    Feature test macros overhaul: strings.h
    
    Replace __STRICT_ANSI__ with the proper internal macros for bcmp etc.
    
    Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>

Diff:
---
 newlib/libc/include/strings.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/newlib/libc/include/strings.h b/newlib/libc/include/strings.h
index 131d81d..fdccfca 100644
--- a/newlib/libc/include/strings.h
+++ b/newlib/libc/include/strings.h
@@ -9,12 +9,12 @@
 
 #include "_ansi.h"
 #include <sys/reent.h>
-
+#include <sys/cdefs.h>
 #include <sys/types.h> /* for size_t */
 
 _BEGIN_STD_C
 
-#if !defined __STRICT_ANSI__ && _POSIX_VERSION < 200809L
+#if __BSD_VISIBLE || (__POSIX_VISIBLE && __POSIX_VISIBLE < 200809)
 /* 
  * 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
@@ -24,7 +24,7 @@ void	 _EXFUN(bcopy,(const void *, void *, size_t));
 void	 _EXFUN(bzero,(void *, size_t));
 char 	*_EXFUN(index,(const char *, int));
 char 	*_EXFUN(rindex,(const char *, int));
-#endif /* ! __STRICT_ANSI__ */
+#endif /* __BSD_VISIBLE || (__POSIX_VISIBLE && __POSIX_VISIBLE < 200809) */
 
 int	 _EXFUN(ffs,(int));
 int	 _EXFUN(strcasecmp,(const char *, const char *));


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