mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-25 02:29:49 +00:00
Fix for broken MacOS X headers (at least in 10.2) when compiling with the
CPU emulator.
This commit is contained in:
parent
d8dc5827d3
commit
2b72c5e047
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user