From 62b966460d6532a7caf813d4c9751601550c721e Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Fri, 6 May 2011 12:06:20 +0000 Subject: [PATCH] do not include DLLMain into core when it is a static library (thanks to aglinarth for the patch) --- modules/core/src/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp index 474eab7ed3..a2a2b8eb13 100644 --- a/modules/core/src/system.cpp +++ b/modules/core/src/system.cpp @@ -748,7 +748,7 @@ cvGetModuleInfo( const char* name, const char **version, const char **plugin_lis *plugin_list = plugin_list_buf; } -#if defined CVAPI_EXPORTS && defined WIN32 && !defined WINCE +#if defined OPENCV_BUILD_SHARED_LIB && defined CVAPI_EXPORTS && defined WIN32 && !defined WINCE BOOL WINAPI DllMain( HINSTANCE, DWORD fdwReason, LPVOID ) { if( fdwReason == DLL_THREAD_DETACH || fdwReason == DLL_PROCESS_DETACH )