Update MinGW to use APIs from WINVER 0x0600

This commit is contained in:
Michał Janiszewski authored and GitHub committed 2016-10-17 09:46:08 +02:00
1 parent d405e32c48
commit 33c3432556
1 file changed
+6 -2
+6 -2
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