summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorarseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640>2012-02-19 05:47:54 +0000
committerarseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640>2012-02-19 05:47:54 +0000
commitbe7bdafa4504b0d54e7defbbf1d89c4fe7a935d4 (patch)
treea5b629c8b387986cb184c7dd8126b4e4142d1b08 /src
parent1835571886997c22170af8e74ad6201976b913ae (diff)
Define uintptr_t for WinCE if necessary (thankfully all MSVC versions seem to define _UINTPTR_T_DEFINED appropriately)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@833 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src')
-rw-r--r--src/pugixml.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index eb924a2..38b9b74 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -64,9 +64,10 @@
#if !defined(_MSC_VER) || _MSC_VER >= 1600
# include <stdint.h>
#else
-# if _MSC_VER < 1300
-// No native uintptr_t in MSVC6
+# ifndef _UINTPTR_T_DEFINED
+// No native uintptr_t in MSVC6 and in some WinCE versions
typedef size_t uintptr_t;
+#define _UINTPTR_T_DEFINED
# endif
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;