diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2001-03-02 23:16:33 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2001-03-02 23:16:33 +0000 |
commit | 19ca46d5fbe807cd81afe2dda33bbd669db91e09 (patch) | |
tree | 304654afa043ddd143653ca5d4a2bba1e53247ab /newlib | |
parent | b73ed85e00944e52791c048324ef8418ae0a3455 (diff) | |
download | newlib-19ca46d5fbe807cd81afe2dda33bbd669db91e09.zip newlib-19ca46d5fbe807cd81afe2dda33bbd669db91e09.tar.gz newlib-19ca46d5fbe807cd81afe2dda33bbd669db91e09.tar.bz2 |
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.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/string/strtok.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 4475488..ac112f3 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 bc11f0d..7f250b4 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> |