From 322017753648ae6211113324fac542184e40302b Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 27 Oct 2013 11:56:12 +0000 Subject: [PATCH] Removed RegisterWaitForSingleObjectEx as it is not present in all Windows SDK versions. [SVN r86474] --- include/boost/detail/winapi/thread_pool.hpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/include/boost/detail/winapi/thread_pool.hpp b/include/boost/detail/winapi/thread_pool.hpp index aa56e94..57059dc 100644 --- a/include/boost/detail/winapi/thread_pool.hpp +++ b/include/boost/detail/winapi/thread_pool.hpp @@ -15,6 +15,8 @@ #pragma once #endif +#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN2K + namespace boost { namespace detail @@ -27,7 +29,6 @@ typedef ::WAITORTIMERCALLBACKFUNC WAITORTIMERCALLBACKFUNC_; typedef ::WAITORTIMERCALLBACK WAITORTIMERCALLBACK_; using ::RegisterWaitForSingleObject; -using ::RegisterWaitForSingleObjectEx; using ::UnregisterWait; using ::UnregisterWaitEx; @@ -64,15 +65,6 @@ __declspec(dllimport) BOOL_ WINAPI RegisterWaitForSingleObject ULONG_ dwFlags ); -__declspec(dllimport) HANDLE_ WINAPI RegisterWaitForSingleObjectEx -( - HANDLE_ hObject, - WAITORTIMERCALLBACK_ Callback, - PVOID_ Context, - ULONG_ dwMilliseconds, - ULONG_ dwFlags -); - __declspec(dllimport) BOOL_ WINAPI UnregisterWait(HANDLE_ WaitHandle); __declspec(dllimport) BOOL_ WINAPI UnregisterWaitEx(HANDLE_ WaitHandle, HANDLE_ CompletionEvent); @@ -99,4 +91,6 @@ inline ULONG_ wt_set_max_threadpool_threads(ULONG_ flags, ULONG_ limit) } } +#endif // BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN2K + #endif // BOOST_DETAIL_WINAPI_THREAD_POOL_HPP