YouCompleteMe/cpp/BoostParts/boost/detail/winapi/GetLastError.hpp

32 lines
691 B
C++
Raw Normal View History

2012-07-21 14:37:40 -04:00
// GetLastError.hpp --------------------------------------------------------------//
// Copyright 2010 Vicente J. Botet Escriba
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
2014-03-01 14:00:20 -05:00
#ifndef BOOST_DETAIL_WINAPI_GETLASTERROR_HPP
#define BOOST_DETAIL_WINAPI_GETLASTERROR_HPP
2012-07-21 14:37:40 -04:00
2014-03-01 14:00:20 -05:00
#include <boost/detail/winapi/basic_types.hpp>
#ifdef BOOST_HAS_PRAGMA_ONCE
#pragma once
#endif
2012-07-21 14:37:40 -04:00
namespace boost {
namespace detail {
2014-03-01 14:00:20 -05:00
namespace winapi {
2012-07-21 14:37:40 -04:00
#if defined( BOOST_USE_WINDOWS_H )
using ::GetLastError;
#else
extern "C" __declspec(dllimport) DWORD_ WINAPI
GetLastError();
#endif
}
}
}
2014-03-01 14:00:20 -05:00
#endif // BOOST_DETAIL_WINAPI_GETLASTERROR_HPP