From bd9c233552ea4659d2129b11a04748bcacd74ab0 Mon Sep 17 00:00:00 2001 From: Exverge Date: Tue, 14 Jul 2026 12:42:43 +0200 Subject: [PATCH] Fix winternl header include Signed-off-by: Exverge --- src/core/arm/nce/arm_nce.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/core/arm/nce/arm_nce.h b/src/core/arm/nce/arm_nce.h index da3c696b95..c643b50e75 100644 --- a/src/core/arm/nce/arm_nce.h +++ b/src/core/arm/nce/arm_nce.h @@ -28,12 +28,18 @@ class System; // so we can manually initialize and use it. // https://github.com/apple-oss-distributions/libpthread/blob/42d026df5b07825070f60134b980a1ec2552dfee/private/pthread/tsd_private.h#L241-L245 constexpr pthread_key_t ContextKey = 210; -#else -#include +#elif __WIN32 + +namespace os { +extern "C" { + #include +} + +} static const u32 ContextKey = TlsAlloc(); static const u32 NCEStorage = TlsAlloc(); -static const u64 TlsSlots = offsetof(TEB, TlsSlots); +static const u64 TlsSlots = offsetof(os::TEB, TlsSlots); #endif