blob: c70b5a99945cfc1906a91a64a3bdc2780426ed37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
$NetBSD: patch-ae,v 1.1 2002/08/16 10:36:26 dmcmahill Exp $
--- boost/boost/detail/limits.hpp.orig Wed Aug 29 18:33:34 2001
+++ boost/boost/detail/limits.hpp
@@ -38,12 +38,21 @@
#include <cwchar> // for WCHAR_MIN and WCHAR_MAX
#include <boost/config.hpp>
+#ifdef __NetBSD__
+#include <machine/endian.h>
+#if BYTE_ORDER == BIG_ENDIAN
+#define BOOST_BIG_ENDIAN
+#else
+#define BOOST_LITTLE_ENDIAN
+#endif
+#else
#if defined(__sparc) || defined(__sparc__) || defined(__powerpc__) || defined(__ppc__) || defined(__hppa) || defined(_MIPSEB)
#define BOOST_BIG_ENDIAN
#elif defined(__i386__)
#define BOOST_LITTLE_ENDIAN
#else
#error The file boost/detail/limits.hpp needs to be set up for your CPU type.
+#endif
#endif
namespace std {
|