From 1592a0be0caa7476fccbb1f9ae9310780cad6ef2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 13 Sep 2017 14:31:01 +0200 Subject: [PATCH] Fix warnings and documentation in strnstr.c Signed-off-by: Sebastian Huber --- 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 ce32d0f73..947355fed 100644 --- a/newlib/libc/string/strnstr.c +++ b/newlib/libc/string/strnstr.c @@ -21,17 +21,16 @@ RETURNS PORTABILITY -<> is ANSI C. +<> is a BSD extension. <> requires no supporting OS subroutines. QUICKREF - strnstr ansi pure + strnstr pure */ -#undef __STRICT_ANSI__ -#include <_ansi.h> +#define _GNU_SOURCE #include /*