pkgsrc/devel/sgi-stl/patches/patch-aa
2000-07-13 16:20:48 +00:00

24 lines
614 B
Text

$NetBSD: patch-aa,v 1.3 2000/07/13 16:20:49 jlam Exp $
--- limits.orig Thu Jun 8 18:10:23 2000
+++ limits Thu Jul 13 12:19:04 2000
@@ -349,11 +349,19 @@
// assumes that long long is 64 bits.
#if !defined(LONGLONG_MIN) && !defined(LONGLONG_MAX) \
&& !defined(ULONGLONG_MAX)
+#if defined(__NetBSD__)
+
+#define ULONGLONG_MAX ULLONG_MAX
+#define LONGLONG_MAX LLONG_MAX
+#define LONGLONG_MIN LLONG_MIN
+
+#else
#define ULONGLONG_MAX 0xffffffffffffffffLLU
#define LONGLONG_MAX 0x7fffffffffffffffLL
#define LONGLONG_MIN (-LONGLONG_MAX - 1LL)
+#endif
#endif
__STL_TEMPLATE_NULL