From 18b4a387a2743c57f6f0d3b4d82b41993a503f4f Mon Sep 17 00:00:00 2001 From: Lukas0610 Date: Sun, 24 Sep 2023 07:01:18 +0200 Subject: [PATCH] Fix compilation of TLS-inl.hpp When trying to compile CyberEngineTweaks with the latest patch-2.0 branch, the compilation fails with ``` error: TLS.cpp vendor\RED4ext.SDK\include\RED4ext/TLS-inl.hpp(9): error C3861: '__readgsqword': identifier not found ``` Including `intrin.h` solves that. --- include/RED4ext/TLS-inl.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/RED4ext/TLS-inl.hpp b/include/RED4ext/TLS-inl.hpp index 3825c34f0..3ad29626f 100644 --- a/include/RED4ext/TLS-inl.hpp +++ b/include/RED4ext/TLS-inl.hpp @@ -4,6 +4,8 @@ #include #endif +#include + RED4EXT_INLINE RED4ext::TLS* RED4ext::TLS::Get() { return *reinterpret_cast(__readgsqword(0x58));