From 2b72c5e047653cec630e416d8f648bd54791f2bf Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Thu, 14 Jul 2005 18:09:30 +0000 Subject: [PATCH] Fix for broken MacOS X headers (at least in 10.2) when compiling with the CPU emulator. --- SheepShaver/src/kpx_cpu/src/mathlib/mathlib.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/SheepShaver/src/kpx_cpu/src/mathlib/mathlib.hpp b/SheepShaver/src/kpx_cpu/src/mathlib/mathlib.hpp index fe0e4095..6782db07 100644 --- a/SheepShaver/src/kpx_cpu/src/mathlib/mathlib.hpp +++ b/SheepShaver/src/kpx_cpu/src/mathlib/mathlib.hpp @@ -23,6 +23,18 @@ #include +// Broken MacOS X headers +#if defined(__APPLE__) && defined(__MACH__) +// ... the following exist but are not macro-defined ... +#ifndef FP_NAN +#define FP_NAN FP_NAN +#define FP_INFINITE FP_INFINITE +#define FP_ZERO FP_ZERO +#define FP_NORMAL FP_NORMAL +#define FP_SUBNORMAL FP_SUBNORMAL +#endif +#endif + // 7.12 Mathematics [#6] #ifndef FP_NAN enum {