diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-07-05 21:25:26 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-07-05 21:25:26 +0000 |
commit | 83fb7adf6c653a0285a89d51b746cb642d2859cf (patch) | |
tree | 24791ee7957dae766c687945939ef17291306b32 /dyngen-exec.h | |
parent | forgot fclose() (diff) | |
download | qemu-kvm-83fb7adf6c653a0285a89d51b746cb642d2859cf.tar.gz qemu-kvm-83fb7adf6c653a0285a89d51b746cb642d2859cf.tar.bz2 qemu-kvm-83fb7adf6c653a0285a89d51b746cb642d2859cf.zip |
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.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dyngen-exec.h b/dyngen-exec.h index 2d5209bc8..907771e4a 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 |