From 1712b87cb6f95a371d0d95d4acbe16de2ee75a09 Mon Sep 17 00:00:00 2001 From: Edward Diener Date: Tue, 21 Jul 2015 15:41:35 -0400 Subject: [PATCH] Added __declspec(dllimport) for Sleep using clang on Windows. --- include/boost/smart_ptr/detail/yield_k.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/smart_ptr/detail/yield_k.hpp b/include/boost/smart_ptr/detail/yield_k.hpp index 2dabc9f..c3d0450 100644 --- a/include/boost/smart_ptr/detail/yield_k.hpp +++ b/include/boost/smart_ptr/detail/yield_k.hpp @@ -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 ) {