Re: [Mingw-w64-public] [RFD] Split standard and non-standard CRT functions

2024-08-24 Thread Rafael Kitover
сб, 24 авг. 2024 г. в 14:20, LIU Hao : > I think that linking MS CRT within a Cygwin program could be dangerous, as > Cygwin has its own CRT. > mingw-w64 headers should only be used to access Windows APIs. As you previously said, this is potentially dangerous for functions that modify global stat

Re: [Mingw-w64-public] [RFD] Split standard and non-standard CRT functions

2024-08-24 Thread LIU Hao
在 2024-08-24 21:31, Rafael Kitover 写道: I just used this as an example, what I am proposing is a general solution for calling non-standard MSVCRT functions from Cygwin and possibly other systems with a similar problem using the MinGW headers. I think that linking MS CRT within a Cygwin program c

Re: [Mingw-w64-public] [RFD] Split standard and non-standard CRT functions

2024-08-24 Thread Rafael Kitover
сб, 24 авг. 2024 г. в 07:27, LIU Hao : > If you are compiling for Cygwin, there's a standard one in POSIX: > >https://pubs.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html I just used this as an example, what I am proposing is a general solution for calling non-standard MSVCRT fun

[Mingw-w64-public] [PATCH] crt/libsrc: Enable scrnsave code

2024-08-24 Thread Biswapriyo Nath
From 0bd40705d39671f6e8ee4b53c11b9e74700d3d88 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Sat, 24 Aug 2024 07:39:02 + Subject: [PATCH] crt/libsrc: Enable scrnsave code Required for https://sourceforge.net/p/mingw-w64/mailman/message/58809472/ Signed-off-by: Biswapriyo Nath --- mi

Re: [Mingw-w64-public] [RFD] Split standard and non-standard CRT functions

2024-08-24 Thread LIU Hao
在 2024-08-24 15:02, Rafael Kitover 写道: Currently, when building for and using the Cygwin runtime, non-standard CRT functions are not available in the headers, and there is no import library for the CRT to link them. For example, the Cygwin "string.h" does not define `stricmp()`, a non-standard M

[Mingw-w64-public] [RFD] Split standard and non-standard CRT functions

2024-08-24 Thread Rafael Kitover
Currently, when building for and using the Cygwin runtime, non-standard CRT functions are not available in the headers, and there is no import library for the CRT to link them. For example, the Cygwin "string.h" does not define `stricmp()`, a non-standard MSVCRT function, which I will use as an ex