fix compile error under macos

This commit is contained in:
nick-less 2021-03-17 20:01:44 +01:00
parent bda4239464
commit 2ae1f01f36
2 changed files with 6 additions and 1 deletions

View file

@ -600,7 +600,12 @@ static void default_instr_hook_callback(unsigned int pc)
#if M68K_EMULATE_ADDRESS_ERROR
#include <setjmp.h>
#ifdef _BSD_SETJMP_H
sigjmp_buf m68ki_aerr_trap;
#else
jmp_buf m68ki_aerr_trap;
#endif
#endif /* M68K_EMULATE_ADDRESS_ERROR */
/* ======================================================================== */

View file

@ -609,7 +609,7 @@ extern sigjmp_buf m68ki_aerr_trap;
if(sigsetjmp(m68ki_aerr_trap, 0) != 0) \
{ \
m68ki_exception_address_error(m68k); \
if(m68ki_stopped) \
if(CPU_STOPPED) \
{ \
if (m68ki_remaining_cycles > 0) \
m68ki_remaining_cycles = 0; \