[libcxx-commits] [libcxx] [libc++] Fix missing 'get_new_handler()' for Windows builds (PR #150182)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Aug 12 18:20:01 PDT 2026
================
@@ -15,18 +15,14 @@
# pragma GCC system_header
#endif
-#if defined(_LIBCPP_ABI_VCRUNTIME)
-# include <new.h>
-#else
_LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD
_LIBCPP_BEGIN_EXPLICIT_ABI_ANNOTATIONS
-typedef void (*new_handler)();
+using new_handler = void (*)();
----------------
frederick-vs-ja wrote:
I'd like to have one or more concentrated PRs to change `typedef` to `using` in batches. Perhaps it's better not to touch the existing `typedef` declaration in this PR.
https://github.com/llvm/llvm-project/pull/150182
More information about the libcxx-commits
mailing list