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:
parent
6e2521830f
commit
c88b4ca2c2
@ -49,12 +49,17 @@ using std::memcpy;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// uintptr_t
|
// uintptr_t
|
||||||
#if !defined(_MSC_VER)
|
#if !defined(_MSC_VER) || _MSC_VER >= 1600
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#elif _MSC_VER < 1300
|
#else
|
||||||
|
# if _MSC_VER < 1300
|
||||||
// No native uintptr_t in MSVC6
|
// No native uintptr_t in MSVC6
|
||||||
typedef size_t uintptr_t;
|
typedef size_t uintptr_t;
|
||||||
# endif
|
# endif
|
||||||
|
typedef unsigned __int8 uint8_t;
|
||||||
|
typedef unsigned __int16 uint16_t;
|
||||||
|
typedef unsigned __int32 uint32_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Inlining controls
|
// Inlining controls
|
||||||
#if defined(_MSC_VER) && _MSC_VER >= 1300
|
#if defined(_MSC_VER) && _MSC_VER >= 1300
|
||||||
@ -609,9 +614,9 @@ namespace pugi
|
|||||||
{
|
{
|
||||||
namespace impl
|
namespace impl
|
||||||
{
|
{
|
||||||
typedef unsigned char char8_t;
|
typedef uint8_t char8_t;
|
||||||
typedef unsigned short char16_t;
|
typedef uint16_t char16_t;
|
||||||
typedef unsigned int char32_t;
|
typedef uint32_t char32_t;
|
||||||
|
|
||||||
inline char16_t endian_swap(char16_t value)
|
inline char16_t endian_swap(char16_t value)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user