diff options
author | Chris Robinson <[email protected]> | 2012-09-18 11:20:48 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-09-18 11:20:48 -0700 |
commit | e779e64c952ab59799c046f546737af80fa0533a (patch) | |
tree | 95d9dcfebcf000487545bfd8b2d692978fff1ecd /Alc | |
parent | 3baaf99a6e71afb12cfa477495f631294207c66c (diff) |
Win64 doesn't allow _controlfp or __control87_2 to set the precision control bits
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/helpers.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c index 53f4016f..0f254533 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -173,6 +173,12 @@ void al_free(void *ptr) } +#if (defined(HAVE___CONTROL87_2) || defined(HAVE__CONTROLFP)) && (defined(__x86_64__) || defined(_M_X64)) +/* Win64 doesn't allow us to set the precision control. */ +#undef _MCW_PC +#define _MCW_PC 0 +#endif + void SetMixerFPUMode(FPUCtl *ctl) { #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) |