Skip to content

Commit

Permalink
Update contrib/restricted/boost/winapi to 1.84.0
Browse files Browse the repository at this point in the history
  • Loading branch information
robot-piglet committed Dec 17, 2023
1 parent ddf7790 commit 9a136a8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
10 changes: 8 additions & 2 deletions contrib/restricted/boost/winapi/include/boost/winapi/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions contrib/restricted/boost/winapi/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a136a8

Please sign in to comment.