blob: 42d6c83adeeb8777b08c1118fe7d7fb7517b1192 (
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
|
$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
|