mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-08-01 21:54:28 +02:00
Merge pull request #16 from eldiener/sleep_fix_2
Change to Sleep declaration for clang on Windows to match Windows imp…
This commit is contained in:
@@ -60,10 +60,15 @@ namespace detail
|
|||||||
{
|
{
|
||||||
|
|
||||||
#if !defined( BOOST_USE_WINDOWS_H ) && !BOOST_PLAT_WINDOWS_RUNTIME
|
#if !defined( BOOST_USE_WINDOWS_H ) && !BOOST_PLAT_WINDOWS_RUNTIME
|
||||||
#if BOOST_COMP_CLANG
|
#if !BOOST_COMP_CLANG || !defined __MINGW32__
|
||||||
extern "C" __declspec(dllimport) void __stdcall Sleep( unsigned long ms );
|
|
||||||
#else
|
|
||||||
extern "C" void __stdcall Sleep( unsigned long ms );
|
extern "C" void __stdcall Sleep( unsigned long ms );
|
||||||
|
#else
|
||||||
|
#include <_mingw.h>
|
||||||
|
#if !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
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user