You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.3 KiB

  1. diff -r -u boost_1_54_0/boost/detail/interlocked.hpp boost_1_54_0-1/boost/detail/interlocked.hpp
  2. --- boost/detail/interlocked.hpp 2013-03-09 23:55:05.000000000 +0100
  3. +++ boost/detail/interlocked.hpp 2013-09-23 11:04:18.405688110 +0200
  4. @@ -69,9 +69,9 @@
  5. # define BOOST_INTERLOCKED_EXCHANGE_POINTER(dest,exchange) \
  6. ((void*)BOOST_INTERLOCKED_EXCHANGE((long*)(dest),(long)(exchange)))
  7. -#elif defined( BOOST_MSVC ) || defined( BOOST_INTEL_WIN )
  8. +#elif defined( BOOST_MSVC ) || defined( BOOST_INTEL_WIN ) || defined( __MINGW64_VERSION_MAJOR )
  9. -#if defined( BOOST_MSVC ) && BOOST_MSVC >= 1600
  10. +#if (defined( BOOST_MSVC ) && BOOST_MSVC >= 1600) || defined( __MINGW64_VERSION_MAJOR )
  11. #include <intrin.h>
  12. @@ -93,11 +93,13 @@
  13. #endif
  14. +#ifndef __MINGW64_VERSION_MAJOR
  15. # pragma intrinsic( _InterlockedIncrement )
  16. # pragma intrinsic( _InterlockedDecrement )
  17. # pragma intrinsic( _InterlockedCompareExchange )
  18. # pragma intrinsic( _InterlockedExchange )
  19. # pragma intrinsic( _InterlockedExchangeAdd )
  20. +#endif
  21. # if defined(_M_IA64) || defined(_M_AMD64)
  22. @@ -127,13 +129,6 @@
  23. #elif defined( WIN32 ) || defined( _WIN32 ) || defined( __WIN32__ ) || defined( __CYGWIN__ )
  24. -#if defined(__MINGW64__)
  25. -#define BOOST_INTERLOCKED_IMPORT
  26. -#else
  27. -#define BOOST_INTERLOCKED_IMPORT __declspec(dllimport)
  28. -#endif
  29. -
  30. -
  31. namespace boost
  32. {