summaryrefslogtreecommitdiff
path: root/boost/detail/winapi/stack_backtrace.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/detail/winapi/stack_backtrace.hpp')
-rw-r--r--boost/detail/winapi/stack_backtrace.hpp55
1 files changed, 10 insertions, 45 deletions
diff --git a/boost/detail/winapi/stack_backtrace.hpp b/boost/detail/winapi/stack_backtrace.hpp
index 637be6cdf4..19f37036b8 100644
--- a/boost/detail/winapi/stack_backtrace.hpp
+++ b/boost/detail/winapi/stack_backtrace.hpp
@@ -1,55 +1,20 @@
-// stack_backtrace.hpp --------------------------------------------------------------
-//
-// Copyright 2017 Andrey Semashev
-//
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
+/*
+ * Copyright 2017 Andrey Semashev
+ *
+ * Distributed under the Boost Software License, Version 1.0.
+ * See http://www.boost.org/LICENSE_1_0.txt
+ *
+ * This header is deprecated, use boost/winapi/stack_backtrace.hpp instead.
+ */
#ifndef BOOST_DETAIL_WINAPI_STACK_BACKTRACE_HPP_INCLUDED_
#define BOOST_DETAIL_WINAPI_STACK_BACKTRACE_HPP_INCLUDED_
-#include <boost/detail/winapi/basic_types.hpp>
-#include <boost/detail/winapi/config.hpp>
+#include <boost/winapi/stack_backtrace.hpp>
+#include <boost/detail/winapi/detail/deprecated_namespace.hpp>
#ifdef BOOST_HAS_PRAGMA_ONCE
#pragma once
#endif
-// MinGW does not provide RtlCaptureStackBackTrace
-#if !defined( BOOST_WINAPI_IS_MINGW )
-
-// Note: RtlCaptureStackBackTrace is available in WinXP SP1 and later, but we don't discriminate SP versions
-#if (BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WINXP)
-
-// Windows SDK shipped with MSVC 7.1 and 8 does not declare RtlCaptureStackBackTrace in headers but allows to link with it
-#if !defined( BOOST_USE_WINDOWS_H ) || (defined(_MSC_VER) && (_MSC_VER+0) < 1500)
-extern "C" {
-
-BOOST_SYMBOL_IMPORT
-boost::detail::winapi::WORD_
-NTAPI
-RtlCaptureStackBackTrace(
- boost::detail::winapi::DWORD_ FramesToSkip,
- boost::detail::winapi::DWORD_ FramesToCapture,
- boost::detail::winapi::PVOID_* BackTrace,
- boost::detail::winapi::PDWORD_ BackTraceHash
- );
-
-} // extern "C"
-#endif
-
-namespace boost {
-namespace detail {
-namespace winapi {
-
-using ::RtlCaptureStackBackTrace;
-
-}
-}
-}
-
-#endif // (BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WINXP)
-
-#endif // !defined( BOOST_WINAPI_IS_MINGW )
-
#endif // BOOST_DETAIL_WINAPI_STACK_BACKTRACE_HPP_INCLUDED_