Fix Linxu build
This commit is contained in:
7
Source/ThirdParty/concurrentqueue.h
vendored
7
Source/ThirdParty/concurrentqueue.h
vendored
@@ -44,6 +44,7 @@
|
|||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <cstddef>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
@@ -156,7 +157,11 @@ namespace details {
|
|||||||
: static_cast<T>(-1);
|
: static_cast<T>(-1);
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::max_align_t std_max_align_t;
|
#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
|
||||||
|
|
||||||
// Some platforms have incorrectly set max_align_t to a type with <8 bytes alignment even while supporting
|
// Some platforms have incorrectly set max_align_t to a type with <8 bytes alignment even while supporting
|
||||||
// 8-byte aligned scalar values (*cough* 32-bit iOS). Work around this with our own union. See issue #64.
|
// 8-byte aligned scalar values (*cough* 32-bit iOS). Work around this with our own union. See issue #64.
|
||||||
|
|||||||
Reference in New Issue
Block a user