system/ByteOrder: <endian.h> is a non-standard header that only Linux provides.
This commit is contained in:
parent
78abcd7df7
commit
c38f29ce56
1
NEWS
1
NEWS
|
@ -2,6 +2,7 @@ ver 0.18.13 (not yet released)
|
|||
* decoder
|
||||
- dsdiff, dsf: fix endless loop on malformed file
|
||||
- ffmpeg: support ffmpeg/libav version 11
|
||||
* fix build failure on Darwin
|
||||
|
||||
ver 0.18.12 (2014/07/30)
|
||||
* database
|
||||
|
|
|
@ -40,6 +40,16 @@
|
|||
/* well-known big-endian */
|
||||
# define IS_LITTLE_ENDIAN false
|
||||
# define IS_BIG_ENDIAN true
|
||||
#elif defined(__APPLE__)
|
||||
/* compile-time check for MacOS */
|
||||
# include <machine/endian.h>
|
||||
# if BYTE_ORDER == LITTLE_ENDIAN
|
||||
# define IS_LITTLE_ENDIAN true
|
||||
# define IS_BIG_ENDIAN false
|
||||
# else
|
||||
# define IS_LITTLE_ENDIAN false
|
||||
# define IS_BIG_ENDIAN true
|
||||
# endif
|
||||
#else
|
||||
/* generic compile-time check */
|
||||
# include <endian.h>
|
||||
|
|
Loading…
Reference in New Issue