summaryrefslogtreecommitdiff
path: root/cad/boolean/patches/patch-ac
blob: c4efbe7ba6bcf4b1c10d56ab7a7938fcf3abe762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-ac,v 1.5 2007/02/23 16:42:30 wiz Exp $

Don't define identifiers that are already macros.

--- modules/kbool/include/booleng.h.orig	2005-11-28 13:32:50.000000000 +0000
+++ modules/kbool/include/booleng.h
@@ -56,8 +56,12 @@ class KBoolLink;
 typedef long long B_INT;		   // 8 bytes integer
 //#define MAXB_INT LONG_LONG_MAX
 //#define MINB_INT LONG_LONG_MIN	// 8 bytes integer
+#ifndef MAXB_INT
 const B_INT MAXB_INT = (0x7fffffffffffffffLL);             // 8 bytes integer
+#endif
+#ifndef MINB_INT
 const B_INT MINB_INT = (0x8000000000000000LL);
+#endif
 
 #else //defined(__UNIX__) || defined(__GNUG__)