See also strsep().
*/
-#if defined HAVE_DECL_STRTOK_R && !HAVE_DECL_STRTOK_R
-extern char *strtok_r(char *restrict s, const char *restrict sep,
- char **restrict lasts);
-#endif
+SQUIDCEXTERN char *strtok_r(char *s, const char *sep, char **lasts);
#endif /* STRTOK_R_H */
// s = "abc\0-def\0"
*/
char *
-__strtok_r (char *s, const char *delim, char **save_ptr)
+strtok_r (char *s, const char *delim, char **save_ptr)
{
char *token;
}
return token;
}
-#ifdef weak_alias
-libc_hidden_def (__strtok_r)
-weak_alias (__strtok_r, strtok_r)
-#endif
/*
- * $Id: squid.h,v 1.269 2007/12/14 23:11:48 amosjeffries Exp $
+ * $Id: squid.h,v 1.270 2008/01/20 17:11:15 serassio Exp $
*
* AUTHOR: Duane Wessels
*
#include "strtoll.h"
#endif
+#if !HAVE_STRTOK_R
+#include "strtok_r.h"
+#endif
+
#if !HAVE_INITGROUPS
#include "initgroups.h"
#endif