public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Fix warnings and documentation in strnstr.c
@ 2017-09-19 20:36 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2017-09-19 20:36 UTC (permalink / raw)
  To: newlib-cvs

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

commit 1592a0be0caa7476fccbb1f9ae9310780cad6ef2
Author: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
Date:   Wed Sep 13 14:31:01 2017 +0200

    Fix warnings and documentation in strnstr.c
    
    Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>

Diff:
---
 newlib/libc/string/strnstr.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/newlib/libc/string/strnstr.c b/newlib/libc/string/strnstr.c
index ce32d0f..947355f 100644
--- a/newlib/libc/string/strnstr.c
+++ b/newlib/libc/string/strnstr.c
@@ -21,17 +21,16 @@ RETURNS
 
 
 PORTABILITY
-<<strnstr>> is ANSI C.
+<<strnstr>> is a BSD extension.
 
 <<strnstr>> requires no supporting OS subroutines.
 
 QUICKREF
-	strnstr ansi pure
+	strnstr pure
 
 */
 
-#undef __STRICT_ANSI__
-#include <_ansi.h>
+#define	_GNU_SOURCE
 #include <string.h>
 
 /*


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-19 20:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-19 20:36 [newlib-cygwin] Fix warnings and documentation in strnstr.c Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).