new_handler.h for libc++ is currently implemented as the following when building for the VC runtime, and not declaring any other symbol, where the new.h resolves to ucrt/new.h
in the Windows SDK.
#if defined(_LIBCPP_ABI_VCRUNTIME)
# include <new.h>
#else
However, new.h does not declare std::get_new_handler
, and builds of programs using std::get_new_handler
fail. I run into this when building mimalloc
for instance.
Is this a known issue? Adding the declaration to new_handler.h
fixes the build problems and all mimalloc tests pass. Are there any concerns with such a fix?