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