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
+3 -8
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 )
{