[Scummvm-git-logs] scummvm master -> c70382506d06c86c28915e67fc882d37e42c51f6

lephilousophe lephilousophe at users.noreply.github.com
Sun Feb 7 15:08:57 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
c70382506d AGS: Define INFINITY when it's not already defined


Commit: c70382506d06c86c28915e67fc882d37e42c51f6
    https://github.com/scummvm/scummvm/commit/c70382506d06c86c28915e67fc882d37e42c51f6
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2021-02-07T16:06:44+01:00

Commit Message:
AGS: Define INFINITY when it's not already defined

This should fix AmigaOS build.
Workaround is taken from Glk glulx_types.h

Changed paths:
    engines/ags/engine/ac/route_finder_jps.inl


diff --git a/engines/ags/engine/ac/route_finder_jps.inl b/engines/ags/engine/ac/route_finder_jps.inl
index c977b48f57..4b861953e1 100644
--- a/engines/ags/engine/ac/route_finder_jps.inl
+++ b/engines/ags/engine/ac/route_finder_jps.inl
@@ -36,6 +36,11 @@
 //include <stddef.h>
 //include <math.h>
 
+// Not all platforms define INFINITY
+#ifndef INFINITY
+#define INFINITY   ((float)(1e+300 * 1e+300)) // This must overflow
+#endif
+
 namespace AGS3 {
 
 // TODO: this could be cleaned up/simplified ...




More information about the Scummvm-git-logs mailing list