runtime: workaround GCC 4.8 libstdc++ C++11 conformance

libstdc++ included with GCC 4.8 does not define `std::max_align_t` as
required by the C++11 specification.  As a workaround, explicitly create
the definition locally.  This was fixed in GCC 4.9 and later.
This commit is contained in:
Saleem Abdulrasool
2018-06-12 09:39:44 -07:00
parent 2add64f701
commit b33a1e1766

View File

@@ -44,6 +44,11 @@
#include <cstring>
#include <type_traits>
#if defined(__GLIBCXX__) && __GLIBCXX__ < 20160726
#include <stddef.h>
namespace std { using ::max_align_t; }
#endif
using namespace swift;
using namespace swift::hashable_support;
using namespace metadataimpl;