#1034 (and #1187). Fixed buildbreaker in MinGW/configure build.

v0.27.3
Robin Mills 9 years ago
parent 7e285c650d
commit 4f135ed1d3

@ -42,7 +42,7 @@ EXIV2_RCSID("@(#) $Id$")
#include <string>
#include <cstring>
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__MINGW__)
# include <windows.h>
# include <shlobj.h>
/* 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);

Loading…
Cancel
Save