and the same fix in the test case
diff --git a/xmltest.cpp b/xmltest.cpp
index a1d836d..7160fe9 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -2036,7 +2036,7 @@
 		for (int i=0; TESTS[i]; ++i) {

 			XMLDocument doc;

 			doc.LoadFile(TESTS[i]);

-			XMLTest("Stack overflow prevented.", XMLError::XML_ELEMENT_DEPTH_EXCEEDED, doc.ErrorID());

+			XMLTest("Stack overflow prevented.", XML_ELEMENT_DEPTH_EXCEEDED, doc.ErrorID());

 		}

 	}

 	{