summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/expat_external.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/expat_external.h b/lib/expat_external.h
index ddb162d..1807a8f 100644
--- a/lib/expat_external.h
+++ b/lib/expat_external.h
@@ -94,9 +94,14 @@ typedef char XML_Char;
typedef char XML_LChar;
#endif /* XML_UNICODE */
-#ifdef XML_LARGE_SIZE /* Use large integers for counts and positions. */
+#ifdef XML_LARGE_SIZE /* Use large integers for file/stream positions. */
+#if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400
+typedef __int64 XML_Index;
+typedef unsigned __int64 XML_Size;
+#else
typedef long long XML_Index;
typedef unsigned long long XML_Size;
+#endif
#else
typedef long XML_Index;
typedef unsigned long XML_Size;