summaryrefslogtreecommitdiff
path: root/cad/boolean/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'cad/boolean/patches/patch-ac')
-rw-r--r--cad/boolean/patches/patch-ac19
1 files changed, 19 insertions, 0 deletions
diff --git a/cad/boolean/patches/patch-ac b/cad/boolean/patches/patch-ac
new file mode 100644
index 00000000000..d84ce2dac50
--- /dev/null
+++ b/cad/boolean/patches/patch-ac
@@ -0,0 +1,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__)
+