Change to Sleep declaration for clang on Windows to match Windows implementation being used

This commit is contained in:
Edward Diener
2015-07-22 06:51:49 -04:00
parent 1712b87cb6
commit acb880d8c2

View File

@ -27,6 +27,10 @@
#include <boost/config.hpp>
#include <boost/predef.h>
#if defined __MINGW32__
#include <_mingw.h>
#endif
#if BOOST_PLAT_WINDOWS_RUNTIME
#include <thread>
#endif
@ -60,10 +64,10 @@ 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
#if !BOOST_COMP_CLANG || (defined __MINGW32__ && !defined __MINGW64_VERSION_MAJOR)
extern "C" void __stdcall Sleep( unsigned long ms );
#else
extern "C" __declspec(dllimport) void __stdcall Sleep( unsigned long ms );
#endif
#endif