Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2001-03-03 02:16:33 +0300
committerJeff Johnston <jjohnstn@redhat.com>2001-03-03 02:16:33 +0300
commit19ca46d5fbe807cd81afe2dda33bbd669db91e09 (patch)
tree304654afa043ddd143653ca5d4a2bba1e53247ab
parentb73ed85e00944e52791c048324ef8418ae0a3455 (diff)
2001-03-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype of strtok_r is always defined.
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/string/strtok.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 44754882d..ac112f334 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,10 @@
2001-03-02 Jeff Johnston <jjohnstn@redhat.com>
+ * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
+ of strtok_r is always defined.
+
+2001-03-02 Jeff Johnston <jjohnstn@redhat.com>
+
* libc/include/machine/ansi.h: New dummy header file.
2001-02-22 Jeff Johnston <jjohnstn@redhat.com>
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 <string.h>
#include <_ansi.h>
#include <reent.h>