diff --git a/include/variant b/include/variant index 13450ddf2..4bb38b721 100644 --- a/include/variant +++ b/include/variant @@ -213,6 +213,9 @@ namespace std { #pragma GCC system_header #endif +_LIBCPP_PUSH_MACROS +#include <__undef_macros> + namespace std { // explicitly not using versioning namespace class _LIBCPP_EXCEPTION_ABI bad_variant_access : public exception { @@ -1586,4 +1589,6 @@ struct _LIBCPP_TEMPLATE_VIS hash { _LIBCPP_END_NAMESPACE_STD +_LIBCPP_POP_MACROS + #endif // _LIBCPP_VARIANT