Fix for broken MacOS X headers (at least in 10.2) when compiling with the

CPU emulator.
This commit is contained in:
gbeauche 2005-07-14 18:09:30 +00:00
parent d8dc5827d3
commit 2b72c5e047

View File

@ -23,6 +23,18 @@
#include <math.h>
// 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 <math.h> [#6]
#ifndef FP_NAN
enum {