From 8354b705b53edb1e3b1473e123cfebcb8643717d Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Sun, 29 Sep 2002 06:08:08 +0000 Subject: Fix build (removal of ) --- cad/magic/files/patch-ae | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 cad/magic/files/patch-ae (limited to 'cad/magic') 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 ++#include + #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; + } -- cgit v1.2.3