Fix build (removal of <values.h>)

This commit is contained in:
Kris Kennaway 2002-09-29 06:08:08 +00:00
parent 08f994036f
commit 8354b705b5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=67224

29
cad/magic/files/patch-ae Normal file
View file

@ -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;
}