Fix compilation with ICC (17.0.1) (#150)

This commit is contained in:
Michał Janiszewski
2017-01-26 21:36:10 +01:00
committed by Petr Kobalicek
parent b7f6d1e369
commit dc0ccfd74c
2 changed files with 2 additions and 2 deletions

View File

@@ -637,7 +637,7 @@
# endif # endif
# endif # endif
# else # else
# if ASMJIT_CC_CLANG || ASMJIT_CC_GCC_GE(4, 0, 0) # if ASMJIT_CC_CLANG || ASMJIT_CC_GCC_GE(4, 0, 0) || ASMJIT_CC_INTEL
# define ASMJIT_API __attribute__((__visibility__("default"))) # define ASMJIT_API __attribute__((__visibility__("default")))
# endif # endif
# endif # endif

View File

@@ -287,7 +287,7 @@ static void ASMJIT_INLINE x86CallCpuId(CpuIdResult* result, uint32_t inEax, uint
: "a"(inEax), : "a"(inEax),
"c"(inEcx) "c"(inEcx)
); );
#elif (ASMJIT_CC_GCC || ASMJIT_CC_CLANG) && ASMJIT_ARCH_X64 #elif (ASMJIT_CC_GCC || ASMJIT_CC_CLANG || ASMJIT_CC_INTEL) && ASMJIT_ARCH_X64
__asm__ __volatile__( \ __asm__ __volatile__( \
"mov %%rbx, %%rdi\n" "mov %%rbx, %%rdi\n"
"cpuid\n" "cpuid\n"