To make sandbox/rick/rexxutil compile with gcc 5.4.1 I had to apply a few
changes

~~~
Index: interpreter/classes/NumberStringClass.cpp
===================================================================
--- interpreter/classes/NumberStringClass.cpp   (revision 11704)
+++ interpreter/classes/NumberStringClass.cpp   (working copy)
@@ -4032,7 +4032,7 @@
 {
     // There are some special double values involved here.  We just return
some
     // special strings for those.
-    if (isnan(number))
+    if (std::isnan(number))
     {
         return (NumberString *)new_string("nan");
     }
Index: interpreter/classes/StringClass.cpp
===================================================================
--- interpreter/classes/StringClass.cpp (revision 11704)
+++ interpreter/classes/StringClass.cpp (working copy)
@@ -435,7 +435,7 @@
         result = std::numeric_limits<double>::signaling_NaN();
         // this will be false if this is really a NaN value. If true,
         // then fall back and use the quiet version.
-        if (!isnan(result))
+        if (!std::isnan(result))
         {
           result = std::numeric_limits<double>::quiet_NaN();
         }
Index: interpreter/runtime/RexxUtilCommon.cpp
===================================================================
--- interpreter/runtime/RexxUtilCommon.cpp      (revision 11704)
+++ interpreter/runtime/RexxUtilCommon.cpp      (working copy)
@@ -1994,7 +1994,7 @@
     double seconds;
     // try to convert the provided delay to a valid floating point number
     if (context->ObjectToDouble(delay, &seconds) == 0 ||
-        isnan(seconds) || seconds == HUGE_VAL || seconds == -HUGE_VAL)
+        std::isnan(seconds) || seconds == HUGE_VAL || seconds == -HUGE_VAL)
     {
         // 88.902 The &1 argument must be a number; found "&2"
         context->RaiseException2(Rexx_Error_Invalid_argument_number,
context->String("delay"), delay);
@@ -2124,7 +2124,7 @@

 #define INTERNAL_ROUTINE(name, entry) REXX_TYPED_ROUTINE_PROTOTYPE(entry)

-#include "SysRexxutilFunctions.h"          // generate prototypes for the
system functions.
+#include "SysRexxUtilFunctions.h"          // generate prototypes for the
system functions.

 // now redefine to generate the table entries
 #undef  INTERNAL_ROUTINE
@@ -2164,7 +2164,6 @@
     REXX_TYPED_ROUTINE(SysFileMove,            SysFileMove),
     REXX_TYPED_ROUTINE(SysFileCopy,            SysFileCopy),
     REXX_TYPED_ROUTINE(SysTempFileName,        SysTempFileName),
-#include "SysRexxutilFunctions.h"
     REXX_LAST_ROUTINE()
 };
~~~
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to