From 9e993a808d4c59daa08d5cba0b7c2244cb845c9c Mon Sep 17 00:00:00 2001 From: Travis Lange Date: Tue, 28 May 2024 18:21:53 -0400 Subject: [PATCH] Fix use of undeclared identifier __cpuidex error on MinGW --- common/sys/sysinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/sys/sysinfo.cpp b/common/sys/sysinfo.cpp index 5f375cd95c..e05b1e38f0 100644 --- a/common/sys/sysinfo.cpp +++ b/common/sys/sysinfo.cpp @@ -295,7 +295,7 @@ namespace embree if (nIds >= 1) __cpuid (cpuid_leaf_1,0x00000001); #if _WIN32 #if _MSC_VER && (_MSC_FULL_VER < 160040219) -#else +#elif defined(_MSC_VER) if (nIds >= 7) __cpuidex(cpuid_leaf_7,0x00000007,0); #endif #else