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