commit | 4e83070c5c904fe55191afcd828c4d84eab73427 | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jan.kundrat@cesnet.cz> | Fri Dec 10 17:40:27 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Dec 16 12:12:03 2021 +0100 |
tree | d5dff11bdcce765e9d5211370fbf7cf780c0af61 | |
parent | 7e462e4ad6a6ff50db33e903a22fdd1f201b1b54 [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_ */