Backport concurrent queue's fixes.

420509b6678263f0fa6c0ffba87a15319238a1f2
This commit is contained in:
Bartosz Taudul 2018-03-04 15:32:42 +01:00
parent 7d6f5b875d
commit 0c1721144e

View File

@ -242,8 +242,8 @@ namespace details {
: static_cast<T>(-1);
};
#if defined(__GNUC__) && !defined( __clang__ )
typedef ::max_align_t std_max_align_t; // GCC forgot to add it to std:: for a while
#if defined(__GLIBCXX__)
typedef ::max_align_t std_max_align_t; // libstdc++ forgot to add it to std:: for a while
#else
typedef std::max_align_t std_max_align_t; // Others (e.g. MSVC) insist it can *only* be accessed via std::
#endif