diff options
Diffstat (limited to 'cpu.cpp')
-rwxr-xr-x | cpu.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -32,6 +32,7 @@ bool CpuId(word32 input, word32 *output) #else #ifndef CRYPTOPP_MS_STYLE_INLINE_ASSEMBLY +extern "C" { typedef void (*SigHandler)(int); static jmp_buf s_jmpNoCPUID; @@ -45,6 +46,7 @@ static void SigIllHandlerSSE2(int) { longjmp(s_jmpNoSSE2, 1); } +} #endif bool CpuId(word32 input, word32 *output) @@ -78,7 +80,7 @@ bool CpuId(word32 input, word32 *output) result = false; else { - __asm__ + asm ( // save ebx in case -fPIC is being used #if CRYPTOPP_BOOL_X86 |