changeset 20710:c1cb521445a4 draft

-Codechange: [OSX] Use non-deprecated functions for byte swapping.
author Michael Lutz <michi@icosahedron.de>
date Wed, 24 Jul 2013 01:58:28 +0200
parents 55b7d139bae4
children 78fe2d6e7dba
files src/core/bitmath_func.hpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/bitmath_func.hpp
+++ b/src/core/bitmath_func.hpp
@@ -365,8 +365,8 @@
 	 * (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))