Skip to content
Browse files

Fix support for macosx and add support for freebsd.

macosx defined a __APPLE__ not a MACOSX as previously found.
  • Loading branch information...
1 parent 9dd04ae commit 0b949923b9b58467b283c332c7d901da55106ac2 @vincenthz committed Sep 30, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 cbits/bitfn.h
4 cbits/bitfn.h
@@ -161,7 +161,9 @@ static inline void array_copy64(uint64_t *d, uint64_t *s, uint32_t nb)
#ifdef __MINGW32__
# define LITTLE_ENDIAN 1234
-#elif defined(MACOSX)
+#elif defined(__FreeBSD__)
+ # include <sys/endian.h>
+#elif defined(__APPLE__)
# include <machine/endian.h>
# include <endian.h>

0 comments on commit 0b94992

Please sign in to comment.
Something went wrong with that request. Please try again.