mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 06:13:51 -07:00
Merge pull request #732 from jamiefiedler/fix_mac_endian_h
include machine/endian.h for os x
This commit is contained in:
commit
47d9a73fd4
1 changed files with 5 additions and 1 deletions
|
@ -17,7 +17,11 @@
|
||||||
# define HOST_LITTLE_ENDIAN
|
# define HOST_LITTLE_ENDIAN
|
||||||
#else
|
#else
|
||||||
// Only some OSes include endian.h from sys/types.h, not Termux, so let's include endian.h directly
|
// Only some OSes include endian.h from sys/types.h, not Termux, so let's include endian.h directly
|
||||||
|
# if defined(__APPLE__)
|
||||||
|
# include <machine/endian.h>
|
||||||
|
# else
|
||||||
# include <endian.h>
|
# include <endian.h>
|
||||||
|
# endif
|
||||||
# if !defined(BYTE_ORDER)
|
# if !defined(BYTE_ORDER)
|
||||||
# if !defined(__BYTE_ORDER) || (__BYTE_ORDER != __LITTLE_ENDIAN && __BYTE_ORDER != __BIG_ENDIAN)
|
# if !defined(__BYTE_ORDER) || (__BYTE_ORDER != __LITTLE_ENDIAN && __BYTE_ORDER != __BIG_ENDIAN)
|
||||||
# error Define BYTE_ORDER to be equal to either LITTLE_ENDIAN or BIG_ENDIAN
|
# error Define BYTE_ORDER to be equal to either LITTLE_ENDIAN or BIG_ENDIAN
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue