-
-
Save anonymous/f826fb6e82c2bbcbef62 to your computer and use it in GitHub Desktop.
Patch for boost/detail/interlocked.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git "a/C:\\Users\\IGAZTA~1\\AppData\\Local\\Temp\\TortoiseGit\\intB8BA.tmp\\interlocked-9c454e0-left.hpp" "b/C:\\Data\\Libs\\LocalGit\\modular-boost\\libs\\winapi\\include\\boost\\detail\\interlocked.hpp" | |
index 1152f71..3a30c8c 100644 | |
--- "a/C:\\Users\\IGAZTA~1\\AppData\\Local\\Temp\\TortoiseGit\\intB8BA.tmp\\interlocked-9c454e0-left.hpp" | |
+++ "b/C:\\Data\\Libs\\LocalGit\\modular-boost\\libs\\winapi\\include\\boost\\detail\\interlocked.hpp" | |
@@ -94,7 +94,7 @@ extern "C" long __cdecl InterlockedExchangeAdd( long*, long ); | |
#elif defined( BOOST_MSVC ) || defined( BOOST_INTEL_WIN ) | |
-#if defined( BOOST_MSVC ) && BOOST_MSVC >= 1500 | |
+#if defined( BOOST_MSVC ) && BOOST_MSVC >= 1400 | |
#include <intrin.h> | |
@@ -114,6 +114,17 @@ extern "C" long __cdecl _InterlockedCompareExchange( long volatile *, long, long | |
extern "C" long __cdecl _InterlockedExchange( long volatile *, long ); | |
extern "C" long __cdecl _InterlockedExchangeAdd( long volatile *, long ); | |
+#if defined( BOOST_MSVC ) && BOOST_MSVC >= 1310 | |
+ | |
+# pragma intrinsic( _InterlockedIncrement ) | |
+# pragma intrinsic( _InterlockedDecrement ) | |
+# pragma intrinsic( _InterlockedCompareExchange ) | |
+# pragma intrinsic( _InterlockedExchange ) | |
+# pragma intrinsic( _InterlockedExchangeAdd ) | |
+ | |
+#endif | |
+ | |
+ | |
#endif | |
# if defined(_M_IA64) || defined(_M_AMD64) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment