mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
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:
@@ -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 ...
|
||||
|
||||
Reference in New Issue
Block a user