Add support for MacOS and (hopefully) other BSD derivatives.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Sat, 14 Sep 2002 10:42:59 +0000 (10:42 +0000)
committerVikram 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

index 063c4644577a1d382f9098846a46e1c3637871be..473b5b9f38c46d1fa7a41464500b74146b840286 100644 (file)
 #include <inttypes.h>
 
 #ifdef __linux__
-#include <endian.h>
+# include <endian.h>
+#else
+#if (BSD >= 199103)
+# include <machine/endian.h>
+#endif
 #endif
 
 #ifdef __sparc__