[Mingw-w64-public] [PATCH] crt: Fix the parameter type for UCRT _crt_atexit

2021-04-25 Thread Martin Storsjö
Also move the declaration to corecrt_startup.h, and add a declaration of the corresponding _crt_quick_at_exit. Signed-off-by: Martin Storsjö --- mingw-w64-crt/crt/ucrtbase_compat.c | 5 ++--- mingw-w64-headers/crt/corecrt_startup.h | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) di

Re: [Mingw-w64-public] [PATCH] crt: Implement `at_quick_exit()`

2021-04-25 Thread Martin Storsjö
On Sun, 25 Apr 2021, Liu Hao wrote: -- I think this might be ok, but I tried looking at how MSVC behaves with this with regard to registering the function within exe vs dll, and whether the dll or the exe calls quick_atexit. Here's my test setup: lib.c: #include #include static void a

[Mingw-w64-public] [PATCH] headers: Add missing values in winerror.h

2021-04-25 Thread Biswapriyo Nath
From 7ec990e83e74470fa989d69e19f90bc6f65d5e13 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Mon, 26 Apr 2021 00:46:21 +0530 Subject: [PATCH] headers: Add missing values in winerror.h Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/include/winerror.h | 9 + 1 file changed, 9

Re: [Mingw-w64-public] [PATCH] crt/stdlib: Add `quick_exit()` and `at_quick_exit()` for UCRT

2021-04-25 Thread Liu Hao
在 2021-04-24 01:08, Christoph Reiter 写道: Someone reported a build error using this commit with the logs referencing quick_exit(). Could this be related? https://github.com/r-windows/rtools-testing/runs/2420378991?check_suite_focus=true (you need to be logged in to see the logs) That using-dec

Re: [Mingw-w64-public] [PATCH] crt/stdlib: Add `quick_exit()` and `at_quick_exit()` for UCRT

2021-04-25 Thread Christoph Reiter
Someone reported a build error using this commit with the logs referencing quick_exit(). Could this be related? https://github.com/r-windows/rtools-testing/runs/2420378991?check_suite_focus=true (you need to be logged in to see the logs) regards ___ M

[Mingw-w64-public] [PATCH] crt: Implement `at_quick_exit()`

2021-04-25 Thread Liu Hao
-- Best regards, Liu Hao From 895f17608aab6d04bb0254ab58ad2bbe98ecc8fe Mon Sep 17 00:00:00 2001 From: Liu Hao Date: Sun, 25 Apr 2021 00:20:47 +0800 Subject: [PATCH] crt: Implement `at_quick_exit()` `at_quick_exit()` was added in 7dda261ef062073eed4ed5b46effa3edd4a658fc. However it is not expor