File openmvg-drop-cpuid.patch of Package openMVG
--- openMVG-1.6/src/openMVG/system/cpu_instruction_set.hpp.orig 2021-08-30 14:43:15.315096238 +0200
+++ openMVG-1.6/src/openMVG/system/cpu_instruction_set.hpp 2021-08-30 14:44:05.939645520 +0200
@@ -15,7 +15,7 @@
#if defined _MSC_VER
#include <intrin.h>
#else
- #include <cpuid.h>
+ //#include <cpuid.h>
#endif
namespace openMVG
@@ -117,14 +117,14 @@ class CpuInstructionSet
private:
static bool internal_cpuid(int32_t out[4], int32_t x)
{
- #if defined __GNUC__
+ /*#if defined __GNUC__
__cpuid_count(x, 0, out[0], out[1], out[2], out[3]);
return true;
#endif
#if defined _MSC_VER
__cpuidex(out, x, 0);
return true;
- #endif
+ #endif*/
return false;
}
};