Index: libcxx/src/new.cpp =================================================================== --- libcxx/src/new.cpp +++ libcxx/src/new.cpp @@ -29,7 +29,7 @@ namespace std { -#ifndef __GLIBCXX__ +#if !defined(__GLIBCXX__) && !(defined(_LIBCPP_ABI_VCRUNTIME) && defined(_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS)) const nothrow_t nothrow{}; #endif Index: libcxx/src/support/runtime/exception_msvc.ipp =================================================================== --- libcxx/src/support/runtime/exception_msvc.ipp +++ libcxx/src/support/runtime/exception_msvc.ipp @@ -76,11 +76,13 @@ #endif // _LIBCPP_NO_EXCEPTIONS } +#if !(defined(_LIBCPP_ABI_VCRUNTIME) && defined(_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS)) bool uncaught_exception() noexcept { return uncaught_exceptions() > 0; } int uncaught_exceptions() noexcept { return __uncaught_exceptions(); } +#endif #if !defined(_LIBCPP_ABI_VCRUNTIME) bad_cast::bad_cast() noexcept