Chris@16: // GetLastError.hpp --------------------------------------------------------------// Chris@16: Chris@16: // Copyright 2010 Vicente J. Botet Escriba Chris@16: Chris@16: // Distributed under the Boost Software License, Version 1.0. Chris@16: // See http://www.boost.org/LICENSE_1_0.txt Chris@16: Chris@16: Chris@16: #ifndef BOOST_DETAIL_WINAPI_GETLASTERROR_HPP Chris@16: #define BOOST_DETAIL_WINAPI_GETLASTERROR_HPP Chris@16: Chris@16: #include Chris@16: Chris@16: #ifdef BOOST_HAS_PRAGMA_ONCE Chris@16: #pragma once Chris@16: #endif Chris@16: Chris@16: namespace boost { Chris@16: namespace detail { Chris@16: namespace winapi { Chris@16: #if defined( BOOST_USE_WINDOWS_H ) Chris@16: using ::GetLastError; Chris@16: #else Chris@16: extern "C" __declspec(dllimport) DWORD_ WINAPI Chris@16: GetLastError(); Chris@16: #endif Chris@16: } Chris@16: } Chris@16: } Chris@16: Chris@16: #endif // BOOST_DETAIL_WINAPI_GETLASTERROR_HPP