Commit 870bacd6 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

include strtok.h to get the prototype

parent d9f39cc9
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -86,6 +86,7 @@ Example set of cookies:
#include "cookie.h"
#include "cookie.h"
#include "getdate.h"
#include "getdate.h"
#include "strequal.h"
#include "strequal.h"
#include "strtok.h"


/* The last #include file should be: */
/* The last #include file should be: */
#ifdef MALLOCDEBUG
#ifdef MALLOCDEBUG
+1 −0
Original line number Original line Diff line number Diff line
@@ -41,6 +41,7 @@
#include <curl/curl.h>
#include <curl/curl.h>


#include "strequal.h"
#include "strequal.h"
#include "strtok.h"


/* The last #include file should be: */
/* The last #include file should be: */
#ifdef MALLOCDEBUG
#ifdef MALLOCDEBUG
+2 −0
Original line number Original line Diff line number Diff line
@@ -30,6 +30,8 @@
#ifndef HAVE_STRTOK_R
#ifndef HAVE_STRTOK_R
char *Curl_strtok_r(char *s, const char *delim, char **last);
char *Curl_strtok_r(char *s, const char *delim, char **last);
#define strtok_r Curl_strtok_r
#define strtok_r Curl_strtok_r
#else
extern char *strtok_r(char *s1, const char *s2, char **lasts);
#endif
#endif


#endif
#endif
+1 −0
Original line number Original line Diff line number Diff line
@@ -91,6 +91,7 @@
#include "cookie.h"
#include "cookie.h"
#include "strequal.h"
#include "strequal.h"
#include "escape.h"
#include "escape.h"
#include "strtok.h"


/* And now for the protocols */
/* And now for the protocols */
#include "ftp.h"
#include "ftp.h"