dtcalc: change from obsoleted MAXFLOAT to FLT_MAX from std C
authorPeter Howkins <flibble@users.sf.net>
Tue, 27 Mar 2018 02:25:58 +0000 (03:25 +0100)
committerPeter Howkins <flibble@users.sf.net>
Tue, 27 Mar 2018 02:25:58 +0000 (03:25 +0100)
cde/programs/dtcalc/calctool.h

index b9ed6065a55a8cfd2589e59f2b91da8115ed6edb..5978a40b309ce562d019dee3b51701b3091632d2 100644 (file)
@@ -32,6 +32,8 @@
  * (c) Copyright 1993, 1994 Novell, Inc.                               *
  */
 
+#include <float.h>
+
 #include <locale.h>
 #include <X11/Intrinsic.h>
 #include <Dt/UserMsg.h>
@@ -93,7 +95,7 @@ extern char *_DtGetMessage(char *filename, int set, int n, char *s);
 #define PLOSS      6
 #endif
 #ifndef HUGE
-#define HUGE       MAXFLOAT
+#define HUGE       FLT_MAX
 #endif
 #endif  /* sun */