From 8a33eabbd593a1dc799267d778a65fae1fc18f08 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Sat, 2 Nov 2024 16:23:07 +0800 Subject: [PATCH] fwd: Only include for MSVC We use inline assembly for GCC and Clang, so it's unnecessary. --- mcfgthread/fwd.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mcfgthread/fwd.h b/mcfgthread/fwd.h index 89e3a8b9a6..45094e52d1 100644 --- a/mcfgthread/fwd.h +++ b/mcfgthread/fwd.h @@ -13,7 +13,10 @@ #include #include #include -#include + +#if defined _MSC_VER && !defined __clang__ +# include /* `__readfsdword()` etc. */ +#endif #if !defined _WIN32_WINNT # define _WIN32_WINNT 0x0601