Update of /cvsroot/boost/boost/libs/thread/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25594
Modified Files:
Tag: RC_1_34_0
mutex.inl
Log Message:
Fix #996.
Index: mutex.inl
===================================================================
RCS file: /cvsroot/boost/boost/libs/thread/src/mutex.inl,v
retrieving revision 1.5.10.4
retrieving revision 1.5.10.5
diff -u -d -r1.5.10.4 -r1.5.10.5
--- mutex.inl 22 Dec 2006 10:38:23 -0000 1.5.10.4
+++ mutex.inl 29 May 2007 17:12:59 -0000 1.5.10.5
@@ -24,7 +24,15 @@
version_info.dwMajorVersion >= 4)
{
if (HMODULE kernel_module = GetModuleHandle(TEXT("KERNEL32.DLL")))
- g_TryEnterCriticalSection =
reinterpret_cast<TryEnterCriticalSection_type>(GetProcAddress(kernel_module,
TEXT("TryEnterCriticalSection")));
+ {
+ g_TryEnterCriticalSection =
reinterpret_cast<TryEnterCriticalSection_type>(
+#if defined(BOOST_NO_ANSI_APIS)
+ GetProcAddressW(kernel_module, L"TryEnterCriticalSection")
+#else
+ GetProcAddress(kernel_module, "TryEnterCriticalSection")
+#endif
+ );
+ }
}
}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs