Fix Windows gcc build. Needs some def to get w7+ windows api

This commit is contained in:
Jean-Francois Dockes
2020-04-25 11:41:37 +02:00
parent 07e3387fc1
commit 2f794be314
17 changed files with 43 additions and 16 deletions
+7 -1
View File
@@ -1,9 +1,9 @@
#ifdef _WIN32
#include "safewindows.h"
#ifdef _MSC_VER
#include "safewindows.h"
// gmtime is supposedly thread-safe on windows
#define gmtime_r(A, B) gmtime(A)
#define localtime_r(A,B) localtime(A)
@@ -19,6 +19,12 @@ typedef int mode_t;
#else // End _MSC_VER -> Gminw
// Allow use of features specific to Windows 7 or later.
#define WINVER 0x0601
#define _WIN32_WINNT 0x0601
#define LOGFONTW void
#include "safewindows.h"
#undef RCL_ICONV_INBUF_CONST
#define timegm portable_timegm