diff options
author | alperevyshin <alperevyshin@yandex-team.com> | 2023-05-13 14:49:29 +0300 |
---|---|---|
committer | alperevyshin <alperevyshin@yandex-team.com> | 2023-05-13 14:49:29 +0300 |
commit | 0ec76d5517e1956aa65446e8974f1358d06a245b (patch) | |
tree | e957cb52db59ede6e2c8d5ad9afb75d103dbd234 /contrib | |
parent | 44241885851a00105e467af090e06be035ed015e (diff) | |
download | ydb-0ec76d5517e1956aa65446e8974f1358d06a245b.tar.gz |
Resolve macro includes for some boost macros with arguments
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/restricted/boost/typeof/include/boost/typeof/incr_registration_group.hpp | 14 | ||||
-rw-r--r-- | contrib/restricted/boost/winapi/include/boost/winapi/wait_on_address.hpp | 56 |
2 files changed, 70 insertions, 0 deletions
diff --git a/contrib/restricted/boost/typeof/include/boost/typeof/incr_registration_group.hpp b/contrib/restricted/boost/typeof/include/boost/typeof/incr_registration_group.hpp new file mode 100644 index 0000000000..6f4803aab5 --- /dev/null +++ b/contrib/restricted/boost/typeof/include/boost/typeof/incr_registration_group.hpp @@ -0,0 +1,14 @@ +// Copyright (C) 2004, 2005 Arkadiy Vertleyb +// Use, modification and distribution is subject to the Boost Software +// License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt) + +// Inclusion of this file increments BOOST_TYPEOF_REGISTRATION_GROUP +// This method was suggested by Paul Mensonides + +#ifdef BOOST_TYPEOF_EMULATION +# undef BOOST_TYPEOF_REGISTRATION_GROUP + +# include <boost/preprocessor/slot/counter.hpp> +# include BOOST_PP_UPDATE_COUNTER() +# define BOOST_TYPEOF_REGISTRATION_GROUP BOOST_PP_COUNTER +#endif diff --git a/contrib/restricted/boost/winapi/include/boost/winapi/wait_on_address.hpp b/contrib/restricted/boost/winapi/include/boost/winapi/wait_on_address.hpp new file mode 100644 index 0000000000..4558f39ef0 --- /dev/null +++ b/contrib/restricted/boost/winapi/include/boost/winapi/wait_on_address.hpp @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Andrey Semashev + * + * Distributed under the Boost Software License, Version 1.0. + * See http://www.boost.org/LICENSE_1_0.txt + */ + +#ifndef BOOST_WINAPI_WAIT_ON_ADDRESS_HPP_INCLUDED_ +#define BOOST_WINAPI_WAIT_ON_ADDRESS_HPP_INCLUDED_ + +#include <boost/winapi/config.hpp> + +#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN8 && (BOOST_WINAPI_PARTITION_APP || BOOST_WINAPI_PARTITION_SYSTEM) + +#include <boost/winapi/basic_types.hpp> +#include <boost/winapi/detail/header.hpp> + +#ifdef BOOST_HAS_PRAGMA_ONCE +#pragma once +#endif + +#if !defined(BOOST_USE_WINDOWS_H) +extern "C" { + +// Note: These functions are not dllimport +boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC +WaitOnAddress( + volatile boost::winapi::VOID_* addr, + boost::winapi::PVOID_ compare_addr, + boost::winapi::SIZE_T_ size, + boost::winapi::DWORD_ timeout_ms); + +boost::winapi::VOID_ BOOST_WINAPI_WINAPI_CC +WakeByAddressSingle(boost::winapi::PVOID_ addr); + +boost::winapi::VOID_ BOOST_WINAPI_WINAPI_CC +WakeByAddressAll(boost::winapi::PVOID_ addr); + +} // extern "C" +#endif // !defined(BOOST_USE_WINDOWS_H) + +namespace boost { +namespace winapi { + +using ::WaitOnAddress; +using ::WakeByAddressSingle; +using ::WakeByAddressAll; + +} +} + +#include <boost/winapi/detail/footer.hpp> + +#endif // BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN8 && (BOOST_WINAPI_PARTITION_APP || BOOST_WINAPI_PARTITION_SYSTEM) + +#endif // BOOST_WINAPI_WAIT_ON_ADDRESS_HPP_INCLUDED_ |