Added __declspec(dllimport) for Sleep using clang on Windows.

This commit is contained in:
Edward Diener
2015-07-21 15:41:35 -04:00
parent a42dda0af4
commit 1712b87cb6

View File

@ -60,8 +60,12 @@ namespace detail
{
#if !defined( BOOST_USE_WINDOWS_H ) && !BOOST_PLAT_WINDOWS_RUNTIME
#if BOOST_COMP_CLANG
extern "C" __declspec(dllimport) void __stdcall Sleep( unsigned long ms );
#else
extern "C" void __stdcall Sleep( unsigned long ms );
#endif
#endif
inline void yield( unsigned k )
{