aboutsummaryrefslogtreecommitdiffstats
path: root/cad
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-09-29 14:08:08 +0800
committerkris <kris@FreeBSD.org>2002-09-29 14:08:08 +0800
commit087d4872f55a38fe0afe68a9f10ad05a1cd39588 (patch)
tree81e5266aa4d32df2ec1067d3bc3c0c8cc8595777 /cad
parent6dbff901843436ff8c8fb22d157d9dd9a84d1a38 (diff)
downloadfreebsd-ports-gnome-087d4872f55a38fe0afe68a9f10ad05a1cd39588.tar.gz
freebsd-ports-gnome-087d4872f55a38fe0afe68a9f10ad05a1cd39588.tar.zst
freebsd-ports-gnome-087d4872f55a38fe0afe68a9f10ad05a1cd39588.zip
Fix build (removal of <values.h>)
Diffstat (limited to 'cad')
-rw-r--r--cad/magic/files/patch-ae29
1 files changed, 29 insertions, 0 deletions
diff --git a/cad/magic/files/patch-ae b/cad/magic/files/patch-ae
new file mode 100644
index 000000000000..e8a51e3f3f2e
--- /dev/null
+++ b/cad/magic/files/patch-ae
@@ -0,0 +1,29 @@
+--- resis/ResRex.c.orig Tue Aug 2 15:40:24 1994
++++ resis/ResRex.c Sat Sep 28 22:51:44 2002
+@@ -11,7 +11,7 @@
+ #ifdef ibm032
+ #define MAXFLOAT ((float)3.40282346638528860e+38)
+ #else
+-#include <values.h>
++#include <limits.h>
+ #endif
+
+ #undef MAXINT
+@@ -447,7 +447,7 @@
+ ResSortByGate(&node->firstTran);
+ /* Find largest SD transistor connected to node. */
+
+- minRes = MAXFLOAT;
++ minRes = FLOAT_MAX;
+ gparams.rg_tranloc = (Point *) NULL;
+ gparams.rg_status = FALSE;
+ gparams.rg_nodecap = node->capacitance;
+@@ -523,7 +523,7 @@
+ {
+ TxError("Node %s has force label but no drive point or driving transistor\n",node->name);
+ }
+- if (minRes == MAXFLOAT || gparams.rg_tranloc == NULL)
++ if (minRes == FLOAT_MAX || gparams.rg_tranloc == NULL)
+ {
+ continue;
+ }