summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2013-08-05 20:37:29 +0000
committermichi_cc <michi_cc@openttd.org>2013-08-05 20:37:29 +0000
commitde097dd989a0675c74253aa0b7f1e27f21233cb7 (patch)
tree0f0e479ff71ceb3031eb50a9ec7a9f034b5d16b1
parent0883cf76e34527f3bf4d8a19c6f68b655969798c (diff)
downloadopenttd-de097dd989a0675c74253aa0b7f1e27f21233cb7.tar.xz
(svn r25685) -Codechange: [OSX] Use non-deprecated functions for byte swapping.
-rw-r--r--src/core/bitmath_func.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/bitmath_func.hpp b/src/core/bitmath_func.hpp
index 5838dd11b..31e679b00 100644
--- a/src/core/bitmath_func.hpp
+++ b/src/core/bitmath_func.hpp
@@ -365,8 +365,8 @@ static inline T ROR(const T x, const uint8 n)
* (since it will use hardware swapping if available).
* Even though they should return uint16 and uint32, we get
* warnings if we don't cast those (why?) */
- #define BSWAP32(x) ((uint32)Endian32_Swap(x))
- #define BSWAP16(x) ((uint16)Endian16_Swap(x))
+ #define BSWAP32(x) ((uint32)CFSwapInt32(x))
+ #define BSWAP16(x) ((uint16)CFSwapInt16(x))
#elif defined(_MSC_VER)
/* MSVC has intrinsics for swapping, resulting in faster code */
#define BSWAP32(x) (_byteswap_ulong(x))