Add tests that include <windows.h>

This commit is contained in:
Peter Dimov
2018-03-11 23:00:50 +02:00
parent 67fab5c9ec
commit 8563fc5c4e
5 changed files with 40 additions and 8 deletions

View File

@ -68,20 +68,15 @@ namespace detail
# define BOOST_SP_STDCALL __stdcall
#endif
#if !BOOST_COMP_CLANG || !defined __MINGW32__
extern "C" void BOOST_SP_STDCALL Sleep( unsigned long ms );
#else
#include <_mingw.h>
#if !defined __MINGW64_VERSION_MAJOR
extern "C" void BOOST_SP_STDCALL Sleep( unsigned long ms );
#if defined(__LP64__) // Cygwin 64
extern "C" __declspec(dllimport) void BOOST_SP_STDCALL Sleep( unsigned int ms );
#else
extern "C" __declspec(dllimport) void BOOST_SP_STDCALL Sleep( unsigned long ms );
#endif
#endif
#undef BOOST_SP_STDCALL
#endif
#endif // !defined( BOOST_USE_WINDOWS_H ) && !BOOST_PLAT_WINDOWS_RUNTIME
inline void yield( unsigned k )
{

View File

@ -272,3 +272,7 @@ run lsp_convertible_test2.cpp ;
run make_shared_array_tmp_test.cpp ;
run lw_thread_test.cpp : : : <threading>multi ;
compile sp_windows_h_test.cpp ;
compile spinlock_windows_h_test.cpp ;
compile yield_k_windows_h_test.cpp ;

View File

@ -0,0 +1,11 @@
// Copyright 2018 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
# include <windows.h>
# include <boost/shared_ptr.hpp>
#endif
int main()
{
}

View File

@ -0,0 +1,11 @@
// Copyright 2018 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
# include <windows.h>
# include <boost/smart_ptr/detail/spinlock.hpp>
#endif
int main()
{
}

View File

@ -0,0 +1,11 @@
// Copyright 2018 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
# include <windows.h>
# include <boost/smart_ptr/detail/yield_k.hpp>
#endif
int main()
{
}