aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2012-07-07 01:53:06 -0400
committerGregory Maxwell <greg@xiph.org>2012-07-07 02:01:44 -0400
commit27a0a5fa463230843322843b7191ff2ccefb0f5d (patch)
tree9d340062ec526f1fc47473d8fb33c810e16c5d2a
parenta7df96343780562a535edb99bcf1291051bf1083 (diff)
downloadlibopus-27a0a5fa463230843322843b7191ff2ccefb0f5d.tar.gz
Avoid using win32 lrintf ASM on mingw even when config.h is broken.
-rw-r--r--celt/float_cast.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/celt/float_cast.h b/celt/float_cast.h
index 9095bb66..36a13fca 100644
--- a/celt/float_cast.h
+++ b/celt/float_cast.h
@@ -90,14 +90,14 @@
#include <math.h>
#define float2int(x) lrint(x)
-#elif (defined (WIN64) || defined (_WIN64))
+#elif (_MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64))
#include <xmmintrin.h>
__inline long int float2int(float value)
{
return _mm_cvtss_si32(_mm_load_ss(&value));
}
-#elif (defined (WIN32) || defined (_WIN32))
+#elif (_MSC_VER >= 1400) && (defined (WIN32) || defined (_WIN32))
#include <math.h>
/* Win32 doesn't seem to have these functions.