0004-mingw-no-cpuidex.patch 481 B

12345678910111213
  1. diff --git a/thirdparty/embree/common/sys/sysinfo.cpp b/thirdparty/embree/common/sys/sysinfo.cpp
  2. index d5b653fe5a..4583e49b1c 100644
  3. --- a/thirdparty/embree/common/sys/sysinfo.cpp
  4. +++ b/thirdparty/embree/common/sys/sysinfo.cpp
  5. @@ -295,7 +295,7 @@ namespace embree
  6. if (nIds >= 1) __cpuid (cpuid_leaf_1,0x00000001);
  7. #if _WIN32
  8. #if _MSC_VER && (_MSC_FULL_VER < 160040219)
  9. -#else
  10. +#elif defined(_MSC_VER)
  11. if (nIds >= 7) __cpuidex(cpuid_leaf_7,0x00000007,0);
  12. #endif
  13. #else