Add support for MacOS and (hopefully) other BSD derivatives.
llvm-svn: 3717
This commit is contained in:
parent
2e8086f046
commit
40a24e841e
|
|
@ -23,7 +23,11 @@
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <endian.h>
|
# include <endian.h>
|
||||||
|
#else
|
||||||
|
#if (BSD >= 199103)
|
||||||
|
# include <machine/endian.h>
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __sparc__
|
#ifdef __sparc__
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue