]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/boost/boost/detail/win/GetCurrentThread.hpp
Add subset of boost library headers needed for compilation on PowerPC
[eurobot/public.git] / src / boost / boost / detail / win / GetCurrentThread.hpp
1 //  GetCurrentThread.hpp  --------------------------------------------------------------//
2
3 //  Copyright 2010 Vicente J. Botet Escriba
4
5 //  Distributed under the Boost Software License, Version 1.0.
6 //  See http://www.boost.org/LICENSE_1_0.txt
7
8
9 #ifndef BOOST_DETAIL_WIN_GETCURRENTTHREAD_HPP
10 #define BOOST_DETAIL_WIN_GETCURRENTTHREAD_HPP
11
12 #include <boost/detail/win/basic_types.hpp>
13
14 namespace boost {
15 namespace detail {
16 namespace win32 {
17 #if defined( UNDER_CE )
18 // Windows CE define GetCurrentThread as an inline function in kfuncs.h
19 inline HANDLE_ GetCurrentThread() 
20 {
21   return ::GetCurrentThread();
22 }
23 #else
24 #if defined( BOOST_USE_WINDOWS_H )
25     using ::GetCurrentThread;
26 #else
27     extern "C" __declspec(dllimport) HANDLE_ WINAPI GetCurrentThread();
28 #endif
29 #endif
30 }
31 }
32 }
33
34 #endif // BOOST_DETAIL_WIN_TIME_HPP