]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/winapi/test/run/mutex_abi.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / winapi / test / run / mutex_abi.cpp
1 /*
2 * Copyright Andrey Semashev 2018.
3 * Distributed under the Boost Software License, Version 1.0.
4 * (See accompanying file LICENSE_1_0.txt or copy at
5 * http://www.boost.org/LICENSE_1_0.txt)
6 */
7 /*!
8 * \file mutex_abi.cpp
9 * \author Andrey Semashev
10 * \date 10.03.2018
11 *
12 * \brief This file contains ABI test for mutex.hpp
13 */
14
15 #include <boost/winapi/mutex.hpp>
16 #include <windows.h>
17 #include "abi_test_tools.hpp"
18
19 int main()
20 {
21 BOOST_WINAPI_TEST_CONSTANT(MUTEX_ALL_ACCESS);
22 BOOST_WINAPI_TEST_CONSTANT(MUTEX_MODIFY_STATE);
23 #if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN6
24 BOOST_WINAPI_TEST_CONSTANT(CREATE_MUTEX_INITIAL_OWNER);
25 #endif
26
27 #if !defined(BOOST_NO_ANSI_APIS)
28 BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(OpenMutexA);
29 #endif
30 BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(OpenMutexW);
31 BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(ReleaseMutex);
32
33 return boost::report_errors();
34 }