diff --git a/modules/ocl/src/cl_context.cpp b/modules/ocl/src/cl_context.cpp index 258ed91e51a7..d78d345197ce 100644 --- a/modules/ocl/src/cl_context.cpp +++ b/modules/ocl/src/cl_context.cpp @@ -757,6 +757,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) {