[nce] fix yoruself amd64
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:
lizzie 2025-09-03 19:02:03 +00:00
parent e1ba4144ed
commit 44a4d8f29a
Signed by: Lizzie
GPG key ID: 00287378CADCAB13

View file

@ -19,7 +19,15 @@
# endif # endif
#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__ # ifdef __OpenBSD__
# define CTX_DECLARE(raw_context) ucontext_t* ucontext = reinterpret_cast<ucontext_t*>(raw_context); # define CTX_DECLARE(raw_context) ucontext_t* ucontext = reinterpret_cast<ucontext_t*>(raw_context);
# else # else