summaryrefslogtreecommitdiff
path: root/graphics/colmap/files/patch-src_ext_VLFeat_host.c
blob: 4d5386268a1157cbb93d34dd9831088f951dbe76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
vlfeat: don't try to use CPUID on non-x86

--- src/ext/VLFeat/host.c.orig	2017-06-15 14:32:01 UTC
+++ src/ext/VLFeat/host.c
@@ -441,6 +441,7 @@ _vl_cpuid (vl_int32* info, int function)
 
 #endif
 
+#if defined(VL_ARCH_IX86) || defined(VL_ARCH_X64) || defined(VL_ARCH_IA64)
 void
 _vl_x86cpu_info_init (VlX86CpuInfo *self)
 {
@@ -487,6 +488,7 @@ _vl_x86cpu_info_to_string_copy (VlX86CpuInfo const *se
   }
   return string ;
 }
+#endif
 
 /** ------------------------------------------------------------------
  ** @brief Human readable static library configuration