Reactos

[MSVCRT_SHARED] Fix up for use with ucrtbase

+14 -4
+1 -1
dll/win32/msvcrt/CMakeLists.txt
··· 117 117 ${msvcrt_shared_asm} 118 118 ) 119 119 120 - target_compile_definitions(msvcrt_shared PRIVATE _MSVCR_VER=0) 120 + target_compile_definitions(msvcrt_shared PRIVATE _MSVCR_VER=0 __UCRTSUPPORT__) 121 121 add_dependencies(msvcrt_shared psdk asm) 122 122 123 123 ###############################################################################
+6 -2
dll/win32/msvcrt/cpp.c
··· 610 610 _CxxThrowException(&e, &exception_exception_type); 611 611 } 612 612 613 + #ifndef __UCRTSUPPORT__ 613 614 /****************************************************************** 614 615 * ?set_terminate@@YAP6AXXZP6AXXZ@Z (MSVCRT.@) 615 616 * ··· 639 640 TRACE("returning %p\n", data->terminate_handler); 640 641 return data->terminate_handler; 641 642 } 643 + #endif /* !__UCRTSUPPORT__ */ 642 644 643 645 /****************************************************************** 644 646 * ?set_unexpected@@YAP6AXXZP6AXXZ@Z (MSVCRT.@) ··· 682 684 return previous; 683 685 } 684 686 687 + #ifndef __UCRTSUPPORT__ 685 688 /****************************************************************** 686 689 * ?terminate@@YAXXZ (MSVCRT.@) 687 690 * ··· 711 714 if (data->unexpected_handler) data->unexpected_handler(); 712 715 terminate(); 713 716 } 717 + #endif /* !__UCRTSUPPORT__ */ 714 718 715 719 716 720 /****************************************************************** ··· 898 902 for (;;) RaiseException( CXX_EXCEPTION, EXCEPTION_NONCONTINUABLE, CXX_EXCEPTION_PARAMS, args ); 899 903 } 900 904 901 - #if _MSVCR_VER >= 80 905 + #if _MSVCR_VER >= 80 || defined(__UCRTSUPPORT__) 902 906 903 907 /********************************************************************* 904 908 * ?_is_exception_typeof@@YAHABVtype_info@@PAU_EXCEPTION_POINTERS@@@Z ··· 971 975 972 976 #endif 973 977 974 - #if _MSVCR_VER >= 140 978 + #if _MSVCR_VER >= 140 || defined(__UCRTSUPPORT__) 975 979 976 980 typedef struct 977 981 {
+5 -1
dll/win32/msvcrt/except.c
··· 522 522 return ret; 523 523 } 524 524 525 + #ifndef __UCRTSUPPORT__ 525 526 /********************************************************************* 526 527 * __pxcptinfoptrs (MSVCRT.@) 527 528 */ ··· 529 530 { 530 531 return (void**)&msvcrt_get_thread_data()->xcptinfo; 531 532 } 533 + #endif /* !__UCRTSUPPORT__ */ 532 534 533 535 typedef void (CDECL *float_handler)(int, int); 534 536 ··· 642 644 SetConsoleCtrlHandler(msvcrt_console_handler, FALSE); 643 645 } 644 646 647 + #ifndef __UCRTSUPPORT__ 645 648 /********************************************************************* 646 649 * signal (MSVCRT.@) 647 650 * Some signals may never be generated except through an explicit call to ··· 724 727 } 725 728 return 0; 726 729 } 730 + #endif /* !__UCRTSUPPORT__ */ 727 731 728 732 /********************************************************************* 729 733 * _XcptFilter (MSVCRT.@) ··· 1011 1015 char dofree; 1012 1016 }; 1013 1017 1014 - #if _MSVCR_VER>=140 1018 + #if _MSVCR_VER>=140 || defined(__UCRTSUPPORT__) 1015 1019 1016 1020 /********************************************************************* 1017 1021 * __std_exception_copy (UCRTBASE.@)
+2
dll/win32/msvcrt/msvc_fwd_decl.h
··· 39 39 void __thiscall type_info_dtor(type_info* _this); 40 40 const char* __thiscall type_info_name(type_info* _this); 41 41 const char* __thiscall type_info_raw_name(type_info* _this); 42 + struct __type_info_node; 43 + const char * __thiscall type_info_name_internal_method(type_info * _this, struct __type_info_node *node); 42 44 43 45 #undef bad_cast 44 46 #undef bad_typeid