From 4f135ed1d3a7dde4e99b0532c58404ffdc031561 Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Sun, 12 Jun 2016 12:17:59 +0000 Subject: [PATCH] #1034 (and #1187). Fixed buildbreaker in MinGW/configure build. --- src/makernote.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);