From 2f6353b0d49a8b420d6f67b9705d648c23f74d74 Mon Sep 17 00:00:00 2001 From: samr7 Date: Fri, 17 Aug 2012 15:32:26 -0700 Subject: [PATCH] Provide strtok_r on Windows. --- winglue.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/winglue.h b/winglue.h index 896a4b7..a36f1e4 100644 --- a/winglue.h +++ b/winglue.h @@ -43,4 +43,9 @@ extern int count_processors(void); #define PRSIZET "I" +static inline char * +strtok_r(char *strToken, const char *strDelimit, char **context) { + return strtok_s(strToken, strDelimit, context); +} + #endif /* !defined (__VG_WINGLUE_H__) */