Update MinGW to use APIs from WINVER 0x0600

This commit is contained in:
Michał Janiszewski 2016-10-17 09:46:08 +02:00 committed by GitHub
parent d405e32c48
commit 33c3432556
1 changed files with 6 additions and 2 deletions

View File

@ -18,6 +18,12 @@
#ifdef __WINDOWS__
#ifdef __MINGW32__
// 0x0600 == vista
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
#endif // __MINGW32__
#include <windows.h>
#include <lmcons.h>
#include <psapi.h>
@ -1037,7 +1043,6 @@ utf8* platform_get_username() {
return username;
}
#ifndef __MINGW32__
///////////////////////////////////////////////////////////////////////////////
// File association setup
///////////////////////////////////////////////////////////////////////////////
@ -1184,4 +1189,3 @@ void platform_remove_file_associations()
///////////////////////////////////////////////////////////////////////////////
#endif
#endif