commit | a78fb6ac93b37b58f0067ff991f12b04f4cc523d | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jan.kundrat@cesnet.cz> | Fri Dec 10 17:40:27 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Mar 15 11:36:42 2022 +0100 |
tree | d5dff11bdcce765e9d5211370fbf7cf780c0af61 | |
parent | 39acd44742437968dfe1af0ed9fa7ba684515633 [diff] [blame] |
compat: MSVC: strtok_r is known as strtok_s
diff --git a/compat/compat.h.in b/compat/compat.h.in index 6bc45fd..bb7cdb0 100644 --- a/compat/compat.h.in +++ b/compat/compat.h.in
@@ -173,4 +173,8 @@ char *strptime(const char *s, const char *format, struct tm *tm); #endif +#if defined (_WIN32) +# define strtok_r strtok_s +#endif + #endif /* _COMPAT_H_ */