From b9a5b9cad6d163192c3ab462fc86adc525a81e71 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Tue, 19 Feb 2013 00:32:39 +0000 Subject: Sync with XeTeX git-svn-id: svn://tug.org/texlive/trunk@29157 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/xetexdir/XeTeXswap.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'Build/source/texk/web2c/xetexdir/XeTeXswap.h') diff --git a/Build/source/texk/web2c/xetexdir/XeTeXswap.h b/Build/source/texk/web2c/xetexdir/XeTeXswap.h index f51dd0d6101..ffdcc2e2a01 100644 --- a/Build/source/texk/web2c/xetexdir/XeTeXswap.h +++ b/Build/source/texk/web2c/xetexdir/XeTeXswap.h @@ -35,8 +35,8 @@ authorization from the copyright holders. #include // ICU's platform.h defines U_IS_BIG_ENDIAN for us -static inline UInt16 -SWAP16(const UInt16 p) +static inline uint16_t +SWAP16(const uint16_t p) { #if U_IS_BIG_ENDIAN return p; @@ -45,8 +45,8 @@ SWAP16(const UInt16 p) #endif } -static inline UInt32 -SWAP32(const UInt32 p) +static inline uint32_t +SWAP32(const uint32_t p) { #if U_IS_BIG_ENDIAN return p; @@ -56,28 +56,28 @@ SWAP32(const UInt32 p) } #ifdef __cplusplus -static inline UInt16 -SWAP(UInt16 p) +static inline uint16_t +SWAP(uint16_t p) { return SWAP16(p); } -static inline UInt32 -SWAP(UInt32 p) +static inline uint32_t +SWAP(uint32_t p) { return SWAP32(p); } -static inline SInt16 -SWAP(SInt16 p) +static inline int16_t +SWAP(int16_t p) { - return (SInt16)SWAP16((UInt16)p); + return (int16_t)SWAP16((uint16_t)p); } -static inline SInt32 -SWAP(SInt32 p) +static inline int32_t +SWAP(int32_t p) { - return (SInt32)SWAP32((UInt32)p); + return (int32_t)SWAP32((uint32_t)p); } #endif -- cgit v1.2.3