diff options
author | Paul Gilbert | 2019-04-18 07:24:40 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-04-18 07:24:46 -0700 |
commit | 70761c707bb45ad8edb8273588f96b31b84ecf6c (patch) | |
tree | 9db68d0ec952e50550dfe432352bd1d4b3c231f6 /engines/glk/glulxe/glulxe_types.h | |
parent | c6a7ec814bd74e9e958917771db355cabd0bdc2f (diff) | |
download | scummvm-rg350-70761c707bb45ad8edb8273588f96b31b84ecf6c.tar.gz scummvm-rg350-70761c707bb45ad8edb8273588f96b31b84ecf6c.tar.bz2 scummvm-rg350-70761c707bb45ad8edb8273588f96b31b84ecf6c.zip |
GLK: GLULXE: More compilation fixes
Diffstat (limited to 'engines/glk/glulxe/glulxe_types.h')
-rw-r--r-- | engines/glk/glulxe/glulxe_types.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/glk/glulxe/glulxe_types.h b/engines/glk/glulxe/glulxe_types.h index d57600edb7..45596bc009 100644 --- a/engines/glk/glulxe/glulxe_types.h +++ b/engines/glk/glulxe/glulxe_types.h @@ -96,6 +96,16 @@ class Glulxe; #define MemW2(adr, vl) (VerifyW(adr, 2), Write2(memmap+(adr), (vl))) #define MemW4(adr, vl) (VerifyW(adr, 4), Write4(memmap+(adr), (vl))) +#ifndef _HUGE_ENUF +#define _HUGE_ENUF 1e+300 // _HUGE_ENUF*_HUGE_ENUF must overflow +#endif +#ifndef INFINITY +#define INFINITY ((float)(_HUGE_ENUF * _HUGE_ENUF)) +#endif +#ifndef NAN +#define NAN ((float)(INFINITY * 0.0F)) +#endif + /** * Macros to access values on the stack. These *must* be used with proper alignment! * (That is, Stk4 and StkW4 must take addresses which are multiples of four, etc.) |