forked from eden-emu/eden
[nce] fix yoruself amd64
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
e390b5790e
commit
aadfd4bcbc
1 changed files with 9 additions and 1 deletions
|
@ -19,7 +19,15 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef MCL_ARCHITECTURE_RISCV
|
||||
#ifdef MCL_ARCHITECTURE_x86_64
|
||||
# ifdef __OpenBSD__
|
||||
# define CTX_DECLARE(raw_context) ucontext_t* ucontext = reinterpret_cast<ucontext_t*>(raw_context);
|
||||
# else
|
||||
# define CTX_DECLARE(raw_context) \
|
||||
ucontext_t* ucontext = reinterpret_cast<ucontext_t*>(raw_context); \
|
||||
[[maybe_unused]] auto& mctx = ucontext->uc_mcontext;
|
||||
# endif
|
||||
#elif defined(ARCHITECTURE_arm64)
|
||||
# ifdef __OpenBSD__
|
||||
# define CTX_DECLARE(raw_context) ucontext_t* ucontext = reinterpret_cast<ucontext_t*>(raw_context);
|
||||
# else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue