summaryrefslogtreecommitdiff
path: root/cad/boolean/patches/patch-ab
blob: 429122ae6fffd6e35c319baeb293d02fe3c1b265 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$NetBSD: patch-ab,v 1.1.1.1 2000/11/18 17:57:27 dmcmahill Exp $

--- ../src/bool/valuesvc.h.orig	Mon Apr  3 21:23:56 2000
+++ ../src/bool/valuesvc.h	Thu Aug 31 17:28:22 2000
@@ -37,6 +37,24 @@
 #define MAXLONG     0x7fffffff
 
-
#else
-
#include <values.h>
+
+#else
+
+#if defined(__NetBSD__)
+
+#include <math.h>
+
+#include <float.h>
+
+#ifndef MAXDOUBLE
+#define MAXDOUBLE DBL_MAX
+#endif
+#ifndef MAXLONG
+#define MAXLONG     0x7fffffff
+#endif
+#else
+
+#include <values.h>
+
+#endif
 #endif
 
@@ -45,2 +63,4 @@
 
 
+
+