summaryrefslogtreecommitdiff
path: root/boost/detail/winapi/GetLastError.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/detail/winapi/GetLastError.hpp')
-rw-r--r--boost/detail/winapi/GetLastError.hpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/boost/detail/winapi/GetLastError.hpp b/boost/detail/winapi/GetLastError.hpp
index 6e9e2d998a..8874ba853a 100644
--- a/boost/detail/winapi/GetLastError.hpp
+++ b/boost/detail/winapi/GetLastError.hpp
@@ -1,6 +1,7 @@
// GetLastError.hpp --------------------------------------------------------------//
// Copyright 2010 Vicente J. Botet Escriba
+// Copyright 2015 Andrey Semashev
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
@@ -15,15 +16,16 @@
#pragma once
#endif
+#if !defined( BOOST_USE_WINDOWS_H )
+extern "C" {
+BOOST_SYMBOL_IMPORT boost::detail::winapi::DWORD_ WINAPI GetLastError(BOOST_DETAIL_WINAPI_VOID);
+}
+#endif
+
namespace boost {
namespace detail {
namespace winapi {
-#if defined( BOOST_USE_WINDOWS_H )
- using ::GetLastError;
-#else
- extern "C" __declspec(dllimport) DWORD_ WINAPI
- GetLastError();
-#endif
+using ::GetLastError;
}
}
}