26 lines
755 B
Text
26 lines
755 B
Text
$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 {
|