diff --git a/client/VCMI_client.cbp b/client/VCMI_client.cbp index 2ff9c874d..64ffd0400 100644 --- a/client/VCMI_client.cbp +++ b/client/VCMI_client.cbp @@ -126,26 +126,12 @@ - - - - - - - - - - - - - - @@ -156,16 +142,10 @@ - - - - - - @@ -184,14 +164,14 @@ + + - - @@ -203,6 +183,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/VCMIDirs.cpp b/lib/VCMIDirs.cpp index aff924435..1b15df1e9 100644 --- a/lib/VCMIDirs.cpp +++ b/lib/VCMIDirs.cpp @@ -26,6 +26,14 @@ void IVCMIDirs::init() #ifdef VCMI_WINDOWS +#ifdef __MINGW32__ + #define _WIN32_IE 0x0500 + + #ifndef CSIDL_MYDOCUMENTS + #define CSIDL_MYDOCUMENTS CSIDL_PERSONAL + #endif +#endif // __MINGW32__ + #include #include #include @@ -573,4 +581,4 @@ namespace VCMIDirs } return singleton; } -} \ No newline at end of file +} diff --git a/test/Test.cbp b/test/Test.cbp index eca595705..e16c403c2 100644 --- a/test/Test.cbp +++ b/test/Test.cbp @@ -47,6 +47,7 @@ +