msvcr80.dll and msvcr90.dll provides __get_app_type() function which
returns the application type set by the __set_app_type() function.
UCRT has this symbol named _query_app_type. So add alias into UCRT def
files for compatibility.
---
mingw-w64-crt/def-include/crt-aliases.def.in | 1 +
mingw-w64-crt/include/internal.h | 1 +
mingw-w64-crt/lib-common/api-ms-win-crt-runtime-l1-1-0.def.in | 1 +
3 files changed, 3 insertions(+)
diff --git a/mingw-w64-crt/def-include/crt-aliases.def.in
b/mingw-w64-crt/def-include/crt-aliases.def.in
index 0cc28335bccc..01442717c6aa 100644
--- a/mingw-w64-crt/def-include/crt-aliases.def.in
+++ b/mingw-w64-crt/def-include/crt-aliases.def.in
@@ -509,6 +509,7 @@ F64(_wutime == _wutime64)
; This is list of symbols which are present in msvcrt but not in UCRT
#ifdef UCRTBASE
__lconv_init == __initialize_lconv_for_unsigned_char
+__get_app_type == _query_app_type
__set_app_type == _set_app_type
__p__daylight == __daylight
__p__dstbias == __dstbias
diff --git a/mingw-w64-crt/include/internal.h b/mingw-w64-crt/include/internal.h
index 3786ed7a1bdf..2eeeca9eb2fc 100644
--- a/mingw-w64-crt/include/internal.h
+++ b/mingw-w64-crt/include/internal.h
@@ -136,6 +136,7 @@ extern "C" {
extern volatile unsigned int __native_vcclrit_reason;
_CRTIMP void __cdecl __set_app_type (int);
+ _CRTIMP int __cdecl __get_app_type (void);
typedef LONG NTSTATUS;
diff --git a/mingw-w64-crt/lib-common/api-ms-win-crt-runtime-l1-1-0.def.in
b/mingw-w64-crt/lib-common/api-ms-win-crt-runtime-l1-1-0.def.in
index ea310d426f81..f0e5a26addcc 100644
--- a/mingw-w64-crt/lib-common/api-ms-win-crt-runtime-l1-1-0.def.in
+++ b/mingw-w64-crt/lib-common/api-ms-win-crt-runtime-l1-1-0.def.in
@@ -69,6 +69,7 @@ _invalid_parameter_noinfo
_invalid_parameter_noinfo_noreturn
_invoke_watson
_query_app_type
+__get_app_type == _query_app_type
_register_onexit_function
_register_thread_local_exe_atexit_callback
_resetstkoflw
--
2.20.1
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public