Add a comment explaining WINVER macros for MinGW

This commit is contained in:
Michał Janiszewski 2017-11-15 17:01:09 +01:00 committed by Chris Marsh
parent f22f299330
commit cfd6470946

View file

@ -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__ #ifdef __MINGW32__
// 0x0600 == vista // 0x0600 == vista
#define WINVER 0x0600 #define WINVER 0x0600