summaryrefslogtreecommitdiff
path: root/boost/detail/winapi/limits.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/detail/winapi/limits.hpp')
-rw-r--r--boost/detail/winapi/limits.hpp51
1 files changed, 10 insertions, 41 deletions
diff --git a/boost/detail/winapi/limits.hpp b/boost/detail/winapi/limits.hpp
index 1a0faaa544..df6ae9f6a9 100644
--- a/boost/detail/winapi/limits.hpp
+++ b/boost/detail/winapi/limits.hpp
@@ -1,51 +1,20 @@
-// limits.hpp --------------------------------------------------------------//
-
-// Copyright 2016 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/limits.hpp instead.
+ */
#ifndef BOOST_DETAIL_WINAPI_LIMITS_HPP_
#define BOOST_DETAIL_WINAPI_LIMITS_HPP_
-#include <boost/detail/winapi/basic_types.hpp>
+#include <boost/winapi/limits.hpp>
+#include <boost/detail/winapi/detail/deprecated_namespace.hpp>
#ifdef BOOST_HAS_PRAGMA_ONCE
#pragma once
#endif
-namespace boost {
-namespace detail {
-namespace winapi {
-
-#if defined( BOOST_USE_WINDOWS_H )
-
-const DWORD_ MAX_PATH_ = MAX_PATH;
-
-#else
-
-const DWORD_ MAX_PATH_ = 260;
-
-#endif
-
-#if defined( BOOST_USE_WINDOWS_H ) && !defined( BOOST_WINAPI_IS_MINGW )
-
-const DWORD_ UNICODE_STRING_MAX_BYTES_ = UNICODE_STRING_MAX_BYTES;
-const DWORD_ UNICODE_STRING_MAX_CHARS_ = UNICODE_STRING_MAX_CHARS;
-
-#else
-
-const DWORD_ UNICODE_STRING_MAX_BYTES_ = 65534;
-const DWORD_ UNICODE_STRING_MAX_CHARS_ = 32767;
-
-#endif
-
-const DWORD_ max_path = MAX_PATH_;
-const DWORD_ unicode_string_max_bytes = UNICODE_STRING_MAX_BYTES_;
-const DWORD_ unicode_string_max_chars = UNICODE_STRING_MAX_CHARS_;
-
-}
-}
-}
-
#endif // BOOST_DETAIL_WINAPI_LIMITS_HPP_