Skip to content

Commit

Permalink
Merge pull request #97 from mpark/max_align_t
Browse files Browse the repository at this point in the history
Updated the `max_align_t` workaround to look for libstdc++ instead of GCC.
  • Loading branch information
cameron314 committed Nov 1, 2017
2 parents 9f9c4e0 + 420509b commit 7b69a8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions concurrentqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,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
Expand Down

0 comments on commit 7b69a8f

Please sign in to comment.