summaryrefslogtreecommitdiff
path: root/cad/boolean/patches/patch-ac
blob: 628502007b4c82584fbf0c695a2ccc283591610e (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.6 2007/02/23 16:43:17 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__)