summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/xetexdir/XeTeXswap.h
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2013-02-19 00:32:39 +0000
committerKhaled Hosny <khaledhosny@eglug.org>2013-02-19 00:32:39 +0000
commitb9a5b9cad6d163192c3ab462fc86adc525a81e71 (patch)
tree11f84a8fdd80d31f9e49565a2e75a4e782146308 /Build/source/texk/web2c/xetexdir/XeTeXswap.h
parente43ae240f33296136cb498e6d9d0e9a55eba7493 (diff)
Sync with XeTeX
git-svn-id: svn://tug.org/texlive/trunk@29157 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/XeTeXswap.h')
-rw-r--r--Build/source/texk/web2c/xetexdir/XeTeXswap.h28
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