diff -Nrup original/boost_1_56_0/boost/thread/win32/mfc_thread_init.hpp patched/boost_1_56_0/boost/thread/win32/mfc_thread_init.hpp --- original/boost_1_56_0/boost/thread/win32/mfc_thread_init.hpp 2014-08-03 21:58:54.000000000 +0300 +++ patched/boost_1_56_0/boost/thread/win32/mfc_thread_init.hpp 2014-08-12 01:44:19.435530105 +0300 @@ -13,7 +13,7 @@ // can't use ExtRawDllMain from afxdllx.h as it also defines the symbol _pRawDllMain extern "C" -inline BOOL WINAPI ExtRawDllMain(HINSTANCE, DWORD dwReason, LPVOID) +inline BOOL WINAPI ExtRawDllMain(HANDLE, DWORD dwReason, LPVOID) { if (dwReason == DLL_PROCESS_ATTACH) {