Skip to content
Snippets Groups Projects
Commit aa27db69 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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! :-(
parent 4ce5fa3e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment