projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
655fb5c
)
Add support for MacOS and (hopefully) other BSD derivatives.
author
Vikram S. Adve
<vadve@cs.uiuc.edu>
Sat, 14 Sep 2002 10:42:59 +0000
(10:42 +0000)
committer
Vikram S. Adve
<vadve@cs.uiuc.edu>
Sat, 14 Sep 2002 10:42:59 +0000
(10:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3717
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/Support/DataTypes.h
patch
|
blob
|
history
diff --git
a/include/Support/DataTypes.h
b/include/Support/DataTypes.h
index 063c4644577a1d382f9098846a46e1c3637871be..473b5b9f38c46d1fa7a41464500b74146b840286 100644
(file)
--- 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__