vlib: fix C warning for UNICODE macro redefinition on windows (#6415)

pull/6416/head
Daniel Däschle 2020-09-18 11:51:55 +02:00 committed by GitHub
parent 4dda06f9bb
commit f7aa9cb0c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -187,8 +187,12 @@ $c_common_macros
#endif #endif
#define _WIN32_WINNT 0x0600 #define _WIN32_WINNT 0x0600
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#ifndef _UNICODE
#define _UNICODE #define _UNICODE
#endif
#ifndef UNICODE
#define UNICODE #define UNICODE
#endif
#include <windows.h> #include <windows.h>
#include <io.h> // _waccess #include <io.h> // _waccess