summaryrefslogtreecommitdiff
path: root/cpu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpu.cpp')
-rwxr-xr-xcpu.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpu.cpp b/cpu.cpp
index 7a0079a..3610a7c 100755
--- a/cpu.cpp
+++ b/cpu.cpp
@@ -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