From c88b4ca2c2e0a5c7a0bb4ae6a09681a415f93333 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Tue, 25 May 2010 17:27:29 +0000 Subject: Internal charN_t types now use fixed size uintN_t types git-svn-id: http://pugixml.googlecode.com/svn/trunk@448 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/pugixml.cpp b/src/pugixml.cpp index bf5253f..3f3984d 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -49,11 +49,16 @@ using std::memcpy; #endif // uintptr_t -#if !defined(_MSC_VER) +#if !defined(_MSC_VER) || _MSC_VER >= 1600 # include -#elif _MSC_VER < 1300 +#else +# if _MSC_VER < 1300 // No native uintptr_t in MSVC6 typedef size_t uintptr_t; +# endif +typedef unsigned __int8 uint8_t; +typedef unsigned __int16 uint16_t; +typedef unsigned __int32 uint32_t; #endif // Inlining controls @@ -609,9 +614,9 @@ namespace pugi { namespace impl { - typedef unsigned char char8_t; - typedef unsigned short char16_t; - typedef unsigned int char32_t; + typedef uint8_t char8_t; + typedef uint16_t char16_t; + typedef uint32_t char32_t; inline char16_t endian_swap(char16_t value) { -- cgit v1.2.3