diff --git a/vm/cpu-x86.32.S b/vm/cpu-x86.32.S index 9e73bd6777..3e7e5c20e1 100644 --- a/vm/cpu-x86.32.S +++ b/vm/cpu-x86.32.S @@ -40,7 +40,7 @@ DEF(void,set_callstack,(F_STACK_FRAME *to, F_STACK_FRAME *from, CELL length, voi ret /* return _with new stack_ */ /* cpu.x86.32 calls this */ -DEF(bool,check_sse2,()): +DEF(bool,check_sse2,(void)): push %ebx mov $1,%eax cpuid diff --git a/vm/cpu-x86.32.h b/vm/cpu-x86.32.h index a81c9987c4..1d516c4703 100644 --- a/vm/cpu-x86.32.h +++ b/vm/cpu-x86.32.h @@ -5,3 +5,4 @@ register CELL rs asm("edi"); #define F_FASTCALL __attribute__ ((regparm (2))) +DLLEXPORT bool check_sse2(void);