AGS: Define INFINITY when it's not already defined

This should fix AmigaOS build.
Workaround is taken from Glk glulx_types.h
This commit is contained in:
Le Philousophe
2021-02-07 16:06:44 +01:00
parent d9213e85fd
commit c70382506d
@@ -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 ...