1 /* 2 * Distributed under the Boost Software License, Version 1.0. 3 * (See accompanying file LICENSE_1_0.txt or copy at 4 * http://www.boost.org/LICENSE_1_0.txt) 5 * 6 * Copyright (c) 2020 Andrey Semashev 7 */ 8 9 #define BOOST_USE_WINAPI_VERSION 0x0602 10 11 // Include Boost.Predef first so that windows.h is guaranteed to be not included 12 #include <boost/predef/os/windows.h> 13 #include <boost/predef/os/cygwin.h> 14 #if !BOOST_OS_WINDOWS && !BOOST_OS_CYGWIN 15 #error "This config test is for Windows only" 16 #endif 17 18 #include <boost/winapi/config.hpp> 19 #include <boost/predef/platform.h> 20 #if !(BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN8 && (BOOST_WINAPI_PARTITION_APP || BOOST_WINAPI_PARTITION_SYSTEM)) 21 #error "No WaitOnAddress API" 22 #endif 23 24 #include <cstddef> 25 #include <boost/winapi/basic_types.hpp> 26 #include <boost/winapi/wait_on_address.hpp> 27 main()28int main() 29 { 30 unsigned int n = 0u, compare = 0u; 31 boost::winapi::WaitOnAddress(&n, &compare, sizeof(n), 0); 32 return 0; 33 } 34