summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>2014-04-05 15:50:28 -0700
committerJeremy Huddleston Sequoia <jeremyhu@apple.com>2014-04-05 15:50:28 -0700
commitf03cc278c6cce0cf721adf9c3764d3c5fba63392 (patch)
treedcef3bef041c08b9a76cc67c1c9c21f078ced606
parenta08bbf0e20995d29cbf890957c898059d4a9ece2 (diff)
darwin: Use OSByteOrder.h rather than CF.
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
-rw-r--r--configure.ac2
-rw-r--r--cursor/parse_cursor_file.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 7b45299..94798d8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,7 +19,7 @@ XCB_UTIL_COMMON([1.4], [1.6])
AM_MISSING_PROG([GPERF], [gperf])
-AC_CHECK_HEADERS([endian.h sys/endian.h sys/byteorder.h CoreFoundation/CoreFoundation.h], [break])
+AC_CHECK_HEADERS([endian.h sys/endian.h sys/byteorder.h libkern/OSByteOrder.h], [break])
AC_CHECK_FUNCS([le32toh])
PKG_CHECK_MODULES(XCB_RENDER, xcb-render)
diff --git a/cursor/parse_cursor_file.c b/cursor/parse_cursor_file.c
index 0226b01..21f72bf 100644
--- a/cursor/parse_cursor_file.c
+++ b/cursor/parse_cursor_file.c
@@ -48,9 +48,9 @@
# ifndef HAVE_LE32TOH
# define le32toh(x) LE_32(x)
# endif
-#elif defined(HAVE_COREFOUNDATION_COREFOUNDATION_H)
-#include <CoreFoundation/CoreFoundation.h>
-#define le32toh(x) CFSwapInt32LittleToHost(x)
+#elif defined(HAVE_LIBKERN_OSBYTEORDER_H)
+#include <libkern/OSByteOrder.h>
+#define le32toh(x) OSSwapLittleToHostInt32(x)
#endif
#include <xcb/xcb.h>