Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix support for macosx and add support for freebsd.

macosx defined a __APPLE__ not a MACOSX as previously found.
  • Loading branch information...
commit 0b949923b9b58467b283c332c7d901da55106ac2 1 parent 9dd04ae
Vincent Hanquez authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  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)
161 161 #ifdef __MINGW32__
162 162 # define LITTLE_ENDIAN 1234
163 163 # define BYTE_ORDER LITTLE_ENDIAN
164   -#elif defined(MACOSX)
  164 +#elif defined(__FreeBSD__)
  165 + # include <sys/endian.h>
  166 +#elif defined(__APPLE__)
165 167 # include <machine/endian.h>
166 168 #else
167 169 # include <endian.h>

0 comments on commit 0b94992

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