]>
Commit | Line | Data |
---|---|---|
b32b8144 FG |
1 | /* |
2 | * Copyright 2010 Vicente J. Botet Escriba | |
3 | * Copyright 2015 Andrey Semashev | |
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_WINAPI_GET_LAST_ERROR_HPP_INCLUDED_ | |
10 | #define BOOST_WINAPI_GET_LAST_ERROR_HPP_INCLUDED_ | |
11 | ||
12 | #include <boost/winapi/basic_types.hpp> | |
20effc67 | 13 | #include <boost/winapi/detail/header.hpp> |
b32b8144 FG |
14 | |
15 | #ifdef BOOST_HAS_PRAGMA_ONCE | |
16 | #pragma once | |
17 | #endif | |
18 | ||
19 | #if !defined( BOOST_USE_WINDOWS_H ) | |
20 | extern "C" { | |
20effc67 | 21 | BOOST_WINAPI_IMPORT_EXCEPT_WM boost::winapi::DWORD_ BOOST_WINAPI_WINAPI_CC GetLastError(BOOST_WINAPI_DETAIL_VOID); |
b32b8144 FG |
22 | } |
23 | #endif | |
24 | ||
25 | namespace boost { | |
26 | namespace winapi { | |
27 | using ::GetLastError; | |
28 | } | |
29 | } | |
30 | ||
20effc67 TL |
31 | #include <boost/winapi/detail/footer.hpp> |
32 | ||
b32b8144 | 33 | #endif // BOOST_WINAPI_GET_LAST_ERROR_HPP_INCLUDED_ |