From e779e64c952ab59799c046f546737af80fa0533a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 18 Sep 2012 11:20:48 -0700 Subject: Win64 doesn't allow _controlfp or __control87_2 to set the precision control bits --- Alc/helpers.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Alc/helpers.c') 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__)) -- cgit v1.2.3