From 19ca46d5fbe807cd81afe2dda33bbd669db91e09 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 2 Mar 2001 23:16:33 +0000 Subject: [PATCH] 2001-03-02 Jeff Johnston * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype of strtok_r is always defined. --- newlib/ChangeLog | 5 +++++ newlib/libc/string/strtok.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 44754882d..ac112f334 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2001-03-02 Jeff Johnston + + * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype + of strtok_r is always defined. + 2001-03-02 Jeff Johnston * libc/include/machine/ansi.h: New dummy header file. diff --git a/newlib/libc/string/strtok.c b/newlib/libc/string/strtok.c index bc11f0df7..7f250b456 100644 --- a/newlib/libc/string/strtok.c +++ b/newlib/libc/string/strtok.c @@ -60,6 +60,8 @@ QUICKREF strtok ansi impure */ +/* undef STRICT_ANSI so that strtok_r prototype will be defined */ +#undef __STRICT_ANSI__ #include #include <_ansi.h> #include