在 2026-8-23 20:06, Pali Rohár 写道:
C99 _Exit symbol is available only in the UCRT DLL libraries.
It is not available in any crtdll/msvcr* DLL library.

Currently the _Exit symbol is provided by the libmingwex.a static library
and also by the UCRT import library. At the same time, mingw-w64 header
files provides inline function _Exit function.

Simplify the whole implementation. Remove inline function _Exit and also
remove mingwex _Exit implementation. For non-UCRT builds defines just

                                                           ^ define

_Exit symbol as alias to _exit symbol.
---
  mingw-w64-crt/Makefile.am                    |  1 -
  mingw-w64-crt/def-include/crt-aliases.def.in |  3 +++
  mingw-w64-crt/stdio/_Exit.c                  | 10 ----------
  mingw-w64-headers/crt/process.h              |  6 ------
  mingw-w64-headers/crt/stdlib.h               |  6 ------
  5 files changed, 3 insertions(+), 23 deletions(-)
  delete mode 100644 mingw-w64-crt/stdio/_Exit.c

LGTM otherwise. I have pushed this one now.



--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to