Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/detail/winapi/GetCurrentThread.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 // GetCurrentThread.hpp --------------------------------------------------------------// |
Chris@16 | 2 |
Chris@16 | 3 // Copyright 2010 Vicente J. Botet Escriba |
Chris@16 | 4 |
Chris@16 | 5 // Distributed under the Boost Software License, Version 1.0. |
Chris@16 | 6 // See http://www.boost.org/LICENSE_1_0.txt |
Chris@16 | 7 |
Chris@16 | 8 |
Chris@16 | 9 #ifndef BOOST_DETAIL_WINAPI_GETCURRENTTHREAD_HPP |
Chris@16 | 10 #define BOOST_DETAIL_WINAPI_GETCURRENTTHREAD_HPP |
Chris@16 | 11 |
Chris@16 | 12 #include <boost/detail/winapi/basic_types.hpp> |
Chris@16 | 13 |
Chris@16 | 14 #ifdef BOOST_HAS_PRAGMA_ONCE |
Chris@16 | 15 #pragma once |
Chris@16 | 16 #endif |
Chris@16 | 17 |
Chris@16 | 18 namespace boost { |
Chris@16 | 19 namespace detail { |
Chris@16 | 20 namespace winapi { |
Chris@16 | 21 #if defined( UNDER_CE ) |
Chris@16 | 22 // Windows CE define GetCurrentThread as an inline function in kfuncs.h |
Chris@16 | 23 inline HANDLE_ GetCurrentThread() |
Chris@16 | 24 { |
Chris@16 | 25 return ::GetCurrentThread(); |
Chris@16 | 26 } |
Chris@16 | 27 #else |
Chris@16 | 28 #if defined( BOOST_USE_WINDOWS_H ) |
Chris@16 | 29 using ::GetCurrentThread; |
Chris@16 | 30 #else |
Chris@16 | 31 extern "C" __declspec(dllimport) HANDLE_ WINAPI GetCurrentThread(); |
Chris@16 | 32 #endif |
Chris@16 | 33 #endif |
Chris@16 | 34 } |
Chris@16 | 35 } |
Chris@16 | 36 } |
Chris@16 | 37 |
Chris@16 | 38 #endif // BOOST_DETAIL_WINAPI_GETCURRENTTHREAD_HPP |