Small 1.28 adjustments for Windows build

This commit is contained in:
Jean-Francois Dockes
2021-01-07 15:47:13 +00:00
parent 712fdbb3f8
commit c6341b2438
6 changed files with 19 additions and 17 deletions
+2
View File
@@ -37,6 +37,8 @@
#ifdef _WIN32
// needed for localtime_r under mingw?
#define _POSIX_THREAD_SAFE_FUNCTIONS
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#ifdef _MSC_VER
#define localtime_r(a,b) localtime_s(b,a)
#endif /* _MSC_VER */