From 4935e2356f6ac3bb3fe38cc590fa461b02ff54a7 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Tue, 20 Mar 2012 06:16:01 +0000 Subject: MinGW does not have _wfopen in strict ANSI mode (fixes mingw45 C++0x compilation) git-svn-id: http://pugixml.googlecode.com/svn/trunk@867 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 315dfa8..2c0efa4 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -3513,7 +3513,7 @@ PUGI__NS_BEGIN } #endif -#if defined(PUGI__MSVC_CRT_VERSION) || defined(__BORLANDC__) || defined(__MINGW32__) +#if defined(PUGI__MSVC_CRT_VERSION) || defined(__BORLANDC__) || (defined(__MINGW32__) && !defined(__STRICT_ANSI__)) PUGI__FN FILE* open_file_wide(const wchar_t* path, const wchar_t* mode) { return _wfopen(path, mode); -- cgit v1.2.3