summaryrefslogtreecommitdiff
path: root/cad/boolean/patches/patch-ac
blob: d84ce2dac50b3b94856ab3f3a43b637a58f91783 (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.3 2005/12/18 21:08:55 rillig Exp $

Don't define identifiers that are already macros.

--- modules/kbool/include/booleng.h.orig	Mon Jul 18 21:56:16 2005
+++ modules/kbool/include/booleng.h	Sun Dec 18 20:56:07 2005
@@ -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__)