This fixes a linking error when a C++ source uses functions in this header.
Signed-off-by: Yan-Jie <[email protected]> --- mingw-w64-headers/crt/new.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mingw-w64-headers/crt/new.h b/mingw-w64-headers/crt/new.h index b8a03579e..689824e60 100644 --- a/mingw-w64-headers/crt/new.h +++ b/mingw-w64-headers/crt/new.h @@ -13,6 +13,7 @@ #include <crtdefs.h> #pragma push_macro("new") #undef new +extern "C" { #endif #ifndef __NOTHROW_T_DEFINED @@ -41,6 +42,7 @@ _CRTIMP _PNH __cdecl _set_new_handler(_PNH _NewHandler); #endif #ifdef __cplusplus +} #pragma pop_macro("new") #endif -- 2.49.0.windows.1 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
