summaryrefslogtreecommitdiff
path: root/dyngen-exec.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-07-05 21:25:26 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-07-05 21:25:26 +0000
commit83fb7adf6c653a0285a89d51b746cb642d2859cf (patch)
tree24791ee7957dae766c687945939ef17291306b32 /dyngen-exec.h
parent1d43a717730346de2c664c0eccf0592eb4ba2cd8 (diff)
Darwin patch (initial patch by Pierre d'Herbemont)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@980 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'dyngen-exec.h')
-rw-r--r--dyngen-exec.h8
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