aboutsummaryrefslogtreecommitdiff
path: root/ports/vlfeat/expose_missing_symbols.patch
blob: 02e9ce0a6614c22f068cb27fa06a77211135a1ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
diff --git a/vl/generic.c b/vl/generic.c
index c6f84a9..8617ed2 100644
--- a/vl/generic.c
+++ b/vl/generic.c
@@ -1513,13 +1513,13 @@ vl_thread_specific_state_delete (VlThreadState * self)
  */
 
 #if (defined(VL_OS_LINUX) || defined(VL_OS_MACOSX)) && defined(VL_COMPILER_GNUC)
-static void vl_constructor () __attribute__ ((constructor)) ;
-static void vl_destructor () __attribute__ ((destructor))  ;
+//static void vl_constructor () __attribute__ ((constructor)) ;
+//static void vl_destructor () __attribute__ ((destructor))  ;
 #endif
 
 #if defined(VL_OS_WIN)
-static void vl_constructor () ;
-static void vl_destructor () ;
+//static void vl_constructor () ;
+//static void vl_destructor () ;
 
 BOOL WINAPI DllMain(
     HINSTANCE hinstDLL,  // handle to DLL module
@@ -1563,7 +1563,7 @@ BOOL WINAPI DllMain(
 /* ---------------------------------------------------------------- */
 
 /** @internal @brief Initialize VLFeat state */
-static void
+void
 vl_constructor (void)
 {
   VlState * state ;
@@ -1637,7 +1637,7 @@ vl_constructor (void)
 }
 
 /** @internal @brief Destruct VLFeat */
-static void
+void
 vl_destructor ()
 {
   VlState * state ;
diff --git a/vl/generic.h b/vl/generic.h
index 4ef87f2..30a974e 100644
--- a/vl/generic.h
+++ b/vl/generic.h
@@ -206,5 +206,7 @@ VL_EXPORT double vl_toc (void) ;
 VL_EXPORT double vl_get_cpu_time (void) ;
 /** @} */
 
+VL_EXPORT void vl_constructor();
+VL_EXPORT void vl_destructor();
 /* VL_GENERIC_H */
 #endif
diff --git a/vl/sift.c b/vl/sift.c
index 03963fe..6477a81 100644
--- a/vl/sift.c
+++ b/vl/sift.c
@@ -1443,7 +1443,7 @@ vl_sift_detect (VlSiftFilt * f)
  ** @remark The minimum octave size is 2x2xS.
  **/
 
-static void
+void
 update_gradient (VlSiftFilt *f)
 {
   int       s_min = f->s_min ;
diff --git a/vl/sift.h b/vl/sift.h
index 50e03f4..f9558ad 100644
--- a/vl/sift.h
+++ b/vl/sift.h
@@ -138,7 +138,8 @@ void  vl_sift_keypoint_init              (VlSiftFilt const *f,
                                           double y,
                                           double sigma) ;
 /** @} */
-
+VL_EXPORT
+void update_gradient(VlSiftFilt* f);
 /** @name Retrieve data and parameters
  ** @{
  **/