Aliased strtok_s to strtok_r for windows builds

This commit is contained in:
Snaipe 2015-07-31 03:15:41 +02:00
parent 90bacdd603
commit bd00c80ea8
2 changed files with 14 additions and 0 deletions

View file

@ -33,6 +33,13 @@
#include "timer.h"
#include "config.h"
#include "i18n.h"
#include "posix-compat.h"
#ifdef VANILLA_WIN32
// provided by windows' libc implementation
char *strtok_s(char *strToken, const char *strDelimit, char **context);
# define strtok_r strtok_s
#endif
typedef const char *const msg_t;

View file

@ -31,6 +31,13 @@
#include "criterion/ordered-set.h"
#include "timer.h"
#include "config.h"
#include "posix-compat.h"
#ifdef VANILLA_WIN32
// provided by windows' libc implementation
char *strtok_s(char *strToken, const char *strDelimit, char **context);
# define strtok_r strtok_s
#endif
void tap_log_pre_all(struct criterion_test_set *set) {
size_t enabled_count = 0;