From 7faea1ace86dd4a832abff1cb25943d35db2410a Mon Sep 17 00:00:00 2001 From: Veselin Georgiev Date: Sun, 22 Jul 2018 03:55:28 +0300 Subject: [PATCH] Fix issue #115: INLINE_ASM_SUPPORTED Visual Studio x86 Reintroduce the INLINE_ASM_SUPPORTED macro for MSVC/x86 --- libcpuid/asm-bits.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libcpuid/asm-bits.h b/libcpuid/asm-bits.h index b2fca8f..9049e2f 100644 --- a/libcpuid/asm-bits.h +++ b/libcpuid/asm-bits.h @@ -58,7 +58,9 @@ #endif /* Under Windows/AMD64 with MSVC, inline assembly isn't supported */ -#if ((defined(COMPILER_GCC) || defined(COMPILER_CLANG))) && (defined(PLATFORM_X64) || defined(PLATFORM_X86) || defined(PLATFORM_ARM)) +#if (((defined(COMPILER_GCC) || defined(COMPILER_CLANG))) && \ + (defined(PLATFORM_X64) || defined(PLATFORM_X86) || defined(PLATFORM_ARM))) || \ + (defined(COMPILER_MICROSOFT) && defined(PLATFORM_X86)) # define INLINE_ASM_SUPPORTED #endif