util: added strtok_r implementation for old compilers

Visual studios older than 2005 don't have strtok_s() and according to
MSDN vs2005 has NOT thread-safe strtok().
This commit is contained in:
Dmitry Podgorny
2016-09-04 00:20:23 +03:00
parent 2b249130c9
commit 53e44aa0e3
3 changed files with 35 additions and 3 deletions

View File

@@ -18,6 +18,9 @@
#include "ostypes.h"
/* string functions */
char *xmpp_strtok_r(char *s, const char *delim, char **saveptr);
/* timing functions */
uint64_t time_stamp(void);
uint64_t time_elapsed(uint64_t t1, uint64_t t2);