diff options
author | rillig <rillig@pkgsrc.org> | 2005-12-18 21:08:55 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-12-18 21:08:55 +0000 |
commit | 575137e2560d5a7fcb381fd731ba5aceaa10bfb9 (patch) | |
tree | ce6a0262386b649359146cee85aeebce934bf71d /cad/boolean/patches | |
parent | c02022ce5fe61357045ef97e8adcda94a0d7a99e (diff) | |
download | pkgsrc-575137e2560d5a7fcb381fd731ba5aceaa10bfb9.tar.gz |
Added a patch that prevents declarations if the identifier is already a
macro.
Diffstat (limited to 'cad/boolean/patches')
-rw-r--r-- | cad/boolean/patches/patch-ac | 19 |
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__)
+
|