Index: include/licq_byteorder.h
===================================================================
--- include/licq_byteorder.h	(revision 6612)
+++ include/licq_byteorder.h	(working copy)
@@ -43,6 +43,13 @@
 #  define BSWAP_64(x) bswap_64(x)
 # endif
 
+// Mac OS X
+#elif defined(__APPLE__) && defined(__MACH__)
+# ifdef __BIG_ENDIAN__
+#  define IS_BIG_ENDIAN
+# else
+#  define IS_LITTLE_ENDIAN
+# endif
 
 // Mac OS X has __BIG_ENDIAN__ or __LITTLE_ENDIAN__ automatically set by the compiler (at least with GCC)
 #elif defined(__APPLE__) && defined(__MACH__)
@@ -80,7 +87,6 @@
 # define LE_32(x) letoh32(x)
 # define LE_64(x) letoh64(x)
 
-
 // Solaris header for endian and byte swap
 #elif defined HAVE_SYS_BYTEORDER_H
 # include <sys/byteorder.h>
