diff options
Diffstat (limited to 'dyngen-exec.h')
-rw-r--r-- | dyngen-exec.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dyngen-exec.h b/dyngen-exec.h index 2d5209bc89..907771e4a9 100644 --- a/dyngen-exec.h +++ b/dyngen-exec.h @@ -59,8 +59,14 @@ extern int fprintf(FILE *, const char *, ...); extern int printf(const char *, ...); #undef NULL #define NULL 0 -#ifdef _BSD +#if defined(_BSD) && !defined(__APPLE__) #include <ieeefp.h> + +#define FE_TONEAREST FP_RN +#define FE_DOWNWARD FP_RM +#define FE_UPWARD FP_RP +#define FE_TOWARDZERO FP_RZ +#define fesetround(x) fpsetround(x) #else #include <fenv.h> #endif |