summaryrefslogtreecommitdiff
path: root/lib/strtok.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-05-31 06:05:32 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-05-31 06:05:32 +0000
commitaa27db698662e11e19f464b25eaf5727419ca3e6 (patch)
tree20dcba809a9ad49bca48919972c5d4cccae62568 /lib/strtok.h
parent4ce5fa3ea9aca51cb03b72e8aa109246441a39e0 (diff)
downloadcurl-aa27db698662e11e19f464b25eaf5727419ca3e6.tar.gz
removed the prototype and made it include string.h instead
If your system, such as Solaris 2.7, lacks the strtok_r() prototype in string.h, then you'll face a bunch of warnings on all instances where strtok_r() is used. There's not much we can do about it. Adding a prototype here screws everything up on other platforms! :-(
Diffstat (limited to 'lib/strtok.h')
-rw-r--r--lib/strtok.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/strtok.h b/lib/strtok.h
index d7ecdf1d3..1c72d8c03 100644
--- a/lib/strtok.h
+++ b/lib/strtok.h
@@ -31,7 +31,14 @@
char *Curl_strtok_r(char *s, const char *delim, char **last);
#define strtok_r Curl_strtok_r
#else
-extern char *strtok_r(char *s1, const char *s2, char **lasts);
+#include <string.h>
+/* If your system, such as Solaris 2.7, lacks the strtok_r() prototype in
+ string.h, then you'll face a bunch of warnings on all instances
+ where strtok_r() is used.
+
+ There's not much we can do about it. Adding a prototype here screws
+ everything up on other platforms! :-(
+*/
#endif
#endif