summaryrefslogtreecommitdiff
path: root/tests/test_document.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-11-24 20:49:12 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-11-24 20:49:12 -0800
commitb7a1feccf79f953b107696841d66666cba5fa8e4 (patch)
treec3cd7f2b030d8f87901e428b29930ee969d6661b /tests/test_document.cpp
parent3e1ae89cf6f750ac088a3b73ed6ef1559e2d436f (diff)
Use _wfopen and fseeko64 on MinGW in C++11 mode
Since MinGW 4.5 does not define these functions if __STRICT_ANSI__ is defined (in case of _wfopen it defines it inconsistently between stdio.h and wchar.h) use the baseline functions for MinGW 4.5 and earlier. Fixes #23.
Diffstat (limited to 'tests/test_document.cpp')
-rw-r--r--tests/test_document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_document.cpp b/tests/test_document.cpp
index 5991937..f57465f 100644
--- a/tests/test_document.cpp
+++ b/tests/test_document.cpp
@@ -323,7 +323,7 @@ TEST(document_load_file_wide_ascii)
CHECK_NODE(doc, STR("<node />"));
}
-#if !defined(__DMC__) && !defined(__MWERKS__)
+#if !defined(__DMC__) && !defined(__MWERKS__) && !(defined(__MINGW32__) && defined(__STRICT_ANSI__) && __GNUC__ * 100 + __GNUC_MINOR__ <= 405)
TEST(document_load_file_wide_unicode)
{
pugi::xml_document doc;