Skip to content

Commit

Permalink
Merge pull request #4638 from OpenRCT2/janisozaur-mingw-test
Browse files Browse the repository at this point in the history
Configure MinGW to consume Vista+ APIs
  • Loading branch information
IntelOrca committed Oct 17, 2016
2 parents a6c95d8 + 7f5b70e commit 2bf4ded
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/platform/windows.c
Expand Up @@ -14,6 +14,12 @@
*****************************************************************************/
#pragma endregion

#ifdef __MINGW32__
// 0x0600 == vista
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
#endif // __MINGW32__

#include "../common.h"

#ifdef __WINDOWS__
Expand Down Expand Up @@ -1037,7 +1043,6 @@ utf8* platform_get_username() {
return username;
}

#ifndef __MINGW32__
///////////////////////////////////////////////////////////////////////////////
// File association setup
///////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -1184,4 +1189,3 @@ void platform_remove_file_associations()

///////////////////////////////////////////////////////////////////////////////
#endif
#endif

0 comments on commit 2bf4ded

Please sign in to comment.