diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-09-14 10:42:59 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-09-14 10:42:59 +0000 |
commit | 0d0d3ee9a7028113e3a6580f0de6166a3c806436 (patch) | |
tree | 9a9744c2dc9787b6ffcdc4b65c2fb4cf149ad0c7 /include/Support | |
parent | 655fb5c817cfaa1bd0cc0e0613e3105c59d60dad (diff) | |
download | external_llvm-0d0d3ee9a7028113e3a6580f0de6166a3c806436.zip external_llvm-0d0d3ee9a7028113e3a6580f0de6166a3c806436.tar.gz external_llvm-0d0d3ee9a7028113e3a6580f0de6166a3c806436.tar.bz2 |
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
Diffstat (limited to 'include/Support')
-rw-r--r-- | include/Support/DataTypes.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/Support/DataTypes.h b/include/Support/DataTypes.h index 063c464..473b5b9 100644 --- a/include/Support/DataTypes.h +++ b/include/Support/DataTypes.h @@ -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__ |