avutil/x86/intmath: Correct intrinsic headers for older compilers.
authorMatt Oliver <protogonoi@gmail.com>
Mon, 9 Nov 2015 10:40:33 +0000 (21:40 +1100)
committerMatt Oliver <protogonoi@gmail.com>
Mon, 9 Nov 2015 10:40:33 +0000 (21:40 +1100)
Signed-off-by: Matt Oliver <protogonoi@gmail.com>
libavutil/x86/intmath.h

index d504079..0022737 100644 (file)
 #define AVUTIL_X86_INTMATH_H
 
 #include <stdint.h>
-#if HAVE_FAST_CLZ && (defined(__INTEL_COMPILER) || defined(_MSC_VER))
-#include <immintrin.h>
+#if HAVE_FAST_CLZ
+#if defined(_MSC_VER)
+#include <intrin.h>
+#elif defined(__INTEL_COMPILER)
+#include <x86intrin.h>
+#endif
 #endif
 #include "config.h"