[libcxx-commits] [libcxx] [libc++] Fix missing 'get_new_handler()' for Windows builds (PR #150182)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Aug 12 17:56:18 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 (*)();
----------------
siradam7th wrote:
Changed to improve the readability and to be in line with the implementation since it uses `using`.
https://github.com/llvm/llvm-project/pull/150182
More information about the libcxx-commits
mailing list