On Wed, 29 Nov 2023, Antonin Décimo wrote:

Microsoft considers these POSIX function names to be deprecated, and
provides alternative names starting with an underscore. A deprecation
warning is raised if the old names are used, which can alternatively
be disabled with the _CRT_NONSTDC_NO_WARNINGS macro.

https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4996?view=msvc-170#posix-function-names

Signed-off-by: Antonin Décimo <anto...@tarides.com>
---
mingw-w64-libraries/winpthreads/src/thread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Personally, for cases like these (for codebases that primarily build in mingw environments, and/or code which might even be built in other environments), I would suggest just enabling _CRT_NONSTDC_NO_WARNINGS when building with MSVC. I don't foresee MS removing support for these functions anytime soon despite the deprecation warnings, and if they do, we can act on it then.

But that's just my 2 cents on this matter.

// Martin

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to