X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fos_win32.h;h=6f92b90abbd28ddca89fe1fe6b9e1816208525d7;hb=cf14e814124ccbc8155fa1dde98d03be319c0e87;hp=4933a2482e6456da937ff3aeec9b310ce5accbb1;hpb=8f9344cb9fb52faf6a11e835b7026d12a1c16265;p=lyx.git diff --git a/src/support/os_win32.h b/src/support/os_win32.h index 4933a2482e..6f92b90abb 100644 --- a/src/support/os_win32.h +++ b/src/support/os_win32.h @@ -29,20 +29,25 @@ * in under MinGW and Cygwin. * It is missing in earlier versions of the MinGW w32api headers. * - * We need to #include now to make available the + * We need to #include now to make available the * DWORD, HMODULE et al. typedefs, so first define WINVER, _WIN32_IE. * * Note: __CYGWIN__ can be defined here if building in _WIN32 mode. */ #if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__CYGWIN32__) -# if defined(WINVER) && WINVER < 0x0500 -# error WINVER must be >= 0x0500 +# if defined(WINVER) +# if WINVER < 0x0600 +# error WINVER must be >= 0x0600 +# endif +# else +# define WINVER 0x0600 # endif -# define WINVER 0x0500 -# define _WIN32_IE 0x0500 +# define _WIN32_IE 0x0600 #endif -#include +#include +#include +#include namespace lyx { @@ -74,7 +79,7 @@ public: ~GetFolderPath(); /** Wrapper for SHGetFolderPathA, returning - * the path asscociated with @c id. + * the path asscociated with @c id in utf8 encoding. */ std::string const operator()(folder_id id) const; private: