diff --git a/src/makernote.cpp b/src/makernote.cpp index 0f45e97c..bb64eea7 100644 --- a/src/makernote.cpp +++ b/src/makernote.cpp @@ -42,7 +42,7 @@ EXIV2_RCSID("@(#) $Id$") #include #include -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__MINGW__) # include # include /* older SDKs not have these */ @@ -92,7 +92,7 @@ namespace Exiv2 { { std::string homedir; std::string inifile; -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__MINGW__) char path[MAX_PATH]; if (SUCCEEDED(SHGetFolderPathA(NULL, CSIDL_PROFILE, NULL, 0, path))) { homedir = std::string(path);