summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-10-03 02:40:11 +0000
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-10-03 02:40:11 +0000
commitf3b220ca4ebf5e3cef1f43e12aea82a78f341d1b (patch)
tree64c96802d97dec3023608e89d5befc3f3d06435b /tests
parent04913dc35838da75c58ec4c8e2890e302aa83352 (diff)
tests: Fix MSVC6 compilation
Also fixes PUGIXML_NO_STL compilation and makes it possible to build with any version of new Windows SDK. git-svn-id: https://pugixml.googlecode.com/svn/trunk@1044 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests')
-rw-r--r--tests/test_dom_modify.cpp3
-rw-r--r--tests/test_write.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_dom_modify.cpp b/tests/test_dom_modify.cpp
index 2c53914..612b017 100644
--- a/tests/test_dom_modify.cpp
+++ b/tests/test_dom_modify.cpp
@@ -1,6 +1,7 @@
#include "common.hpp"
#include <limits>
+#include <string>
TEST_XML(dom_attr_assign, "<node/>")
{
@@ -1256,7 +1257,7 @@ TEST(dom_node_copy_stackless)
data += STR("text");
- for (unsigned int i = 0; i < count; ++i)
+ for (unsigned int j = 0; j < count; ++j)
data += STR("</a>");
xml_document doc;
diff --git a/tests/test_write.cpp b/tests/test_write.cpp
index 523a91e..0c20e26 100644
--- a/tests/test_write.cpp
+++ b/tests/test_write.cpp
@@ -419,7 +419,7 @@ TEST(write_stackless)
data += STR("text");
- for (unsigned int i = 0; i < count; ++i)
+ for (unsigned int j = 0; j < count; ++j)
data += STR("</a>");
xml_document doc;