Fixed a Wmissing-declarations warning when compiling with MinGW.
authorRoman Donchenko <roman.donchenko@itseez.com>
Thu, 24 Oct 2013 14:33:23 +0000 (18:33 +0400)
committerRoman Donchenko <roman.donchenko@itseez.com>
Thu, 24 Oct 2013 14:35:08 +0000 (18:35 +0400)
modules/ocl/src/cl_context.cpp

index 258ed91..d78d345 100644 (file)
@@ -758,6 +758,9 @@ __Module::~__Module()
 #if defined(WIN32) && defined(CVAPI_EXPORTS)
 
 extern "C"
+BOOL WINAPI DllMain(HINSTANCE /*hInst*/, DWORD fdwReason, LPVOID lpReserved);
+
+extern "C"
 BOOL WINAPI DllMain(HINSTANCE /*hInst*/, DWORD fdwReason, LPVOID lpReserved)
 {
     if (fdwReason == DLL_PROCESS_DETACH)