From fee0ed0754bd08b81629c6a35ce1cf09266fdf8b Mon Sep 17 00:00:00 2001 From: Jonathan Lennox Date: Mon, 3 Aug 2015 17:04:28 -0400 Subject: Add intrinsics support to Visual Studio build. --- celt/x86/x86cpu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'celt/x86') diff --git a/celt/x86/x86cpu.c b/celt/x86/x86cpu.c index 76bfd6c7..f850715e 100644 --- a/celt/x86/x86cpu.c +++ b/celt/x86/x86cpu.c @@ -43,7 +43,11 @@ #if defined(_MSC_VER) #include -#define cpuid(info,x) __cpuid(info,x) +static _inline void cpuid(unsigned int CPUInfo[4], unsigned int InfoType) +{ + __cpuid((int*)CPUInfo, InfoType); +} + #else #if defined(CPU_INFO_BY_C) -- cgit v1.2.3