Aliased strtok_s to strtok_r for windows builds
This commit is contained in:
parent
90bacdd603
commit
bd00c80ea8
2 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue