Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / thread / test / winrt_init.cpp
1 //  Distributed under the Boost Software License, Version 1.0. (See accompanying
2 //  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
3
4 #include <boost/predef/platform.h>
5
6 #if BOOST_PLAT_WINDOWS_RUNTIME
7
8 #include <wrl\wrappers\corewrappers.h>
9 #pragma comment(lib, "runtimeobject.lib")
10
11 // Necessary for the tests which to keep the Windows Runtime active,
12 // when running in an actual Windows store/phone application initialization
13 // is handled automatically by the CRT.
14 // This is easier than calling in the main function for each test case.
15 Microsoft::WRL::Wrappers::RoInitializeWrapper runtime(RO_INIT_MULTITHREADED);
16
17 #endif