Add support for MacOS and (hopefully) other BSD derivatives.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3717 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2002-09-14 10:42:59 +00:00
parent 655fb5c817
commit 0d0d3ee9a7

View File

@ -23,7 +23,11 @@
#include <inttypes.h>
#ifdef __linux__
#include <endian.h>
# include <endian.h>
#else
#if (BSD >= 199103)
# include <machine/endian.h>
#endif
#endif
#ifdef __sparc__