From cfd64709468d2f440a79faf8445be4ef7d15f84b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Wed, 15 Nov 2017 17:01:09 +0100 Subject: [PATCH] Add a comment explaining WINVER macros for MinGW --- src/discord_register_win.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/discord_register_win.cpp b/src/discord_register_win.cpp index fc4b627..6510f41 100644 --- a/src/discord_register_win.cpp +++ b/src/discord_register_win.cpp @@ -1,3 +1,9 @@ +/* + * MinGW defaults to WINNT 5.1 (aka XP), however some of functions used here + * require WINNT >= 6.0 APIs, which are only visible when WINVER and + * _WIN32_WINNT defines are set properly before including any system headers. + * Such API is e.g. RegSetKeyValueW. + */ #ifdef __MINGW32__ // 0x0600 == vista #define WINVER 0x0600