diff --git a/wine/include/winnt.h b/wine/include/winnt.h index 477bd87..d9357fd 100644 --- a/wine/include/winnt.h +++ b/wine/include/winnt.h @@ -2043,6 +2043,29 @@ typedef ARM64_NT_CONTEXT CONTEXT, *PCONTEXT; #endif /* __aarch64__ */ +#if defined(__LIBWINEVBS__) && defined(__EMSCRIPTEN__) +/* libwinevbs-only: wasm32 has no real CPU context / SEH unwinding to describe. + * This library never performs structured exception handling or stack + * unwinding (no real threads, no SEH usage) - these types only need to exist + * so the unconditional NTSYSAPI declarations below type-check. */ +#define CONTEXT_FULL 0x1 + +typedef struct _RUNTIME_FUNCTION +{ + DWORD dummy; +} RUNTIME_FUNCTION, *PRUNTIME_FUNCTION; + +typedef struct _CONTEXT +{ + DWORD ContextFlags; +} CONTEXT, *PCONTEXT; + +typedef struct _KNONVOLATILE_CONTEXT_POINTERS +{ + DWORD dummy; +} KNONVOLATILE_CONTEXT_POINTERS, *PKNONVOLATILE_CONTEXT_POINTERS; +#endif /* __LIBWINEVBS__ && __EMSCRIPTEN__ */ + #if !defined(CONTEXT_FULL) && !defined(RC_INVOKED) #error You need to define a CONTEXT for your CPU #endif