diff --git a/stdlib/public/runtime/Casting.cpp b/stdlib/public/runtime/Casting.cpp index 5be857d5fd7e2..e1542177e39e3 100644 --- a/stdlib/public/runtime/Casting.cpp +++ b/stdlib/public/runtime/Casting.cpp @@ -44,6 +44,11 @@ #include #include +#if defined(__GLIBCXX__) && __GLIBCXX__ < 20160726 +#include +namespace std { using ::max_align_t; } +#endif + using namespace swift; using namespace swift::hashable_support; using namespace metadataimpl;