[nce] fix yoruself amd64
All checks were successful
eden-license / license-header (pull_request) Successful in 25s
All checks were successful
eden-license / license-header (pull_request) Successful in 25s
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
e1ba4144ed
commit
44a4d8f29a
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