0
0
mirror of https://github.com/zeux/pugixml.git synced 2025-01-16 12:13:24 +08:00

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
This commit is contained in:
arseny.kapoulkine 2010-05-25 17:27:29 +00:00
parent 6e2521830f
commit c88b4ca2c2

View File

@ -49,11 +49,16 @@ using std::memcpy;
#endif
// uintptr_t
#if !defined(_MSC_VER)
#if !defined(_MSC_VER) || _MSC_VER >= 1600
# include <stdint.h>
#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)
{