diff options
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/XeTeXswap.h')
-rw-r--r-- | Build/source/texk/web2c/xetexdir/XeTeXswap.h | 28 |
1 files changed, 14 insertions, 14 deletions
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 <unicode/platform.h> // 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 |