added dummy symbol to flann to make OpenCV compile on Windows
authorVadim Pisarevsky <no@email>
Mon, 20 Jun 2011 08:42:08 +0000 (08:42 +0000)
committerVadim Pisarevsky <no@email>
Mon, 20 Jun 2011 08:42:08 +0000 (08:42 +0000)
modules/flann/include/opencv2/flann/general.h
modules/flann/src/flann.cpp

index 87e7e2f..28db33b 100644 (file)
@@ -46,6 +46,11 @@ public:
     FLANNException(const std::string& message) : std::runtime_error(message) { }
 };
 
+#if (defined WIN32 || defined _WIN32 || defined WINCE) && defined CVAPI_EXPORTS\r
+__declspec(dllexport)\r
+#endif
+void dummyfunc();
+
 }
 
 
index 77c439f..1002d6e 100644 (file)
@@ -28,5 +28,4 @@
 
 #include "precomp.hpp"
 
-
-
+void cvflann::dummyfunc() {}