aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2023-12-17 04:18:41 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2023-12-17 04:34:57 +0300
commitccf253b4b872123cb2f95d9a3098aa66a59a624b (patch)
treeeaf574272514adc0b59a297cb8e9de981b242b22
parentd9972831aeb936b5588c71b7583d5e078d830044 (diff)
downloadydb-ccf253b4b872123cb2f95d9a3098aa66a59a624b.tar.gz
Update contrib/restricted/boost/winapi to 1.84.0
-rw-r--r--contrib/restricted/boost/winapi/include/boost/winapi/config.hpp10
-rw-r--r--contrib/restricted/boost/winapi/include/boost/winapi/handles.hpp4
-rw-r--r--contrib/restricted/boost/winapi/ya.make4
3 files changed, 12 insertions, 6 deletions
diff --git a/contrib/restricted/boost/winapi/include/boost/winapi/config.hpp b/contrib/restricted/boost/winapi/include/boost/winapi/config.hpp
index 5f61045cc1..8a770ebe79 100644
--- a/contrib/restricted/boost/winapi/include/boost/winapi/config.hpp
+++ b/contrib/restricted/boost/winapi/include/boost/winapi/config.hpp
@@ -108,13 +108,19 @@
#elif defined(WINVER)
#define BOOST_USE_WINAPI_VERSION WINVER
#else
-// By default use Windows 7 API on compilers that support it and Vista or XP on the others
+// By default use Windows 10 API on compilers that support it and latest versions on the others
#if (defined(_MSC_VER) && _MSC_VER < 1500) || defined(BOOST_WINAPI_IS_MINGW)
#define BOOST_USE_WINAPI_VERSION BOOST_WINAPI_VERSION_WINXP
#elif (defined(_MSC_VER) && _MSC_VER < 1600)
#define BOOST_USE_WINAPI_VERSION BOOST_WINAPI_VERSION_WIN6
-#else
+#elif (defined(_MSC_VER) && _MSC_VER < 1700)
#define BOOST_USE_WINAPI_VERSION BOOST_WINAPI_VERSION_WIN7
+#elif (defined(_MSC_VER) && _MSC_VER < 1800)
+#define BOOST_USE_WINAPI_VERSION BOOST_WINAPI_VERSION_WIN8
+#elif (defined(_MSC_VER) && _MSC_VER < 1900)
+#define BOOST_USE_WINAPI_VERSION BOOST_WINAPI_VERSION_WINBLUE
+#else
+#define BOOST_USE_WINAPI_VERSION BOOST_WINAPI_VERSION_WIN10
#endif
#endif
#endif
diff --git a/contrib/restricted/boost/winapi/include/boost/winapi/handles.hpp b/contrib/restricted/boost/winapi/include/boost/winapi/handles.hpp
index d3db4f7339..0f19658d4a 100644
--- a/contrib/restricted/boost/winapi/include/boost/winapi/handles.hpp
+++ b/contrib/restricted/boost/winapi/include/boost/winapi/handles.hpp
@@ -31,7 +31,7 @@ DuplicateHandle(
boost::winapi::BOOL_ bInheritHandle,
boost::winapi::DWORD_ dwOptions);
-#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN10
+#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN10 && (BOOST_WINAPI_PARTITION_APP || BOOST_WINAPI_PARTITION_SYSTEM)
BOOST_WINAPI_IMPORT boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC
CompareObjectHandles(
boost::winapi::HANDLE_ hFirstObjectHandle,
@@ -46,7 +46,7 @@ namespace winapi {
using ::CloseHandle;
using ::DuplicateHandle;
-#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN10
+#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN10 && (BOOST_WINAPI_PARTITION_APP || BOOST_WINAPI_PARTITION_SYSTEM)
using ::CompareObjectHandles;
#endif
diff --git a/contrib/restricted/boost/winapi/ya.make b/contrib/restricted/boost/winapi/ya.make
index 1e588dda36..24616a4ce9 100644
--- a/contrib/restricted/boost/winapi/ya.make
+++ b/contrib/restricted/boost/winapi/ya.make
@@ -6,9 +6,9 @@ LICENSE(BSL-1.0)
LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
-VERSION(1.83.0)
+VERSION(1.84.0)
-ORIGINAL_SOURCE(https://github.com/boostorg/winapi/archive/boost-1.83.0.tar.gz)
+ORIGINAL_SOURCE(https://github.com/boostorg/winapi/archive/boost-1.84.0.tar.gz)
PEERDIR(
contrib/restricted/boost/config