Win64 doesn't allow _controlfp or __control87_2 to set the precision control bits

This commit is contained in:
Chris Robinson 2012-09-18 11:20:48 -07:00
parent 3baaf99a6e
commit e779e64c95

View File

@ -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__))