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

llvm-svn: 3717
This commit is contained in:
Vikram S. Adve 2002-09-14 10:42:59 +00:00
parent 2e8086f046
commit 40a24e841e
1 changed files with 5 additions and 1 deletions

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__