From b0638ede779dacfa4a02b2d53960f3f43dbd190a Mon Sep 17 00:00:00 2001 From: kobalicek Date: Wed, 27 Dec 2023 18:11:49 +0100 Subject: [PATCH] [Bug] Fixed CpuInfo not reporting hw thread count on non-windows platforms --- src/asmjit/core/cpuinfo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/asmjit/core/cpuinfo.cpp b/src/asmjit/core/cpuinfo.cpp index 6e9b698..8ff69f8 100644 --- a/src/asmjit/core/cpuinfo.cpp +++ b/src/asmjit/core/cpuinfo.cpp @@ -14,12 +14,15 @@ #endif #endif // ASMJIT_ARCH_X86 +#if !defined(_WIN32) + #include +#endif + #if ASMJIT_ARCH_ARM // Required by various utilities that are required by features detection. #if !defined(_WIN32) #include #include - #include #endif //! Required to detect CPU and features on Apple platforms.