--
Best regards,
LIU Hao

From de035478a131fbbf3e31eaef018f7b0e732c73c2 Mon Sep 17 00:00:00 2001
From: LIU Hao <lh_mo...@126.com>
Date: Sat, 1 Mar 2025 15:17:08 +0800
Subject: [PATCH] headers: Define `__MINGW_ATTRIB_DEPRECATED_SEC_WARN` properly
 for C

When `__MINGW_MSVC_COMPAT_WARNINGS` is defined, the plain (non-template)
functions are always deprecated, and template overloads are not to be marked
with `__MINGW_ATTRIB_DEPRECATED_SEC_WARN` anyway.

Previously these warnings could not be disabled for C.

Reference: https://sourceforge.net/p/mingw-w64/mailman/message/59152860/
Signed-off-by: LIU Hao <lh_mo...@126.com>
---
 mingw-w64-headers/crt/_mingw_mac.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mingw-w64-headers/crt/_mingw_mac.h 
b/mingw-w64-headers/crt/_mingw_mac.h
index f69bbec5d..70d64f6d0 100644
--- a/mingw-w64-headers/crt/_mingw_mac.h
+++ b/mingw-w64-headers/crt/_mingw_mac.h
@@ -270,7 +270,7 @@
 #  define __MINGW_ATTRIB_DEPRECATED_MSVC2005
 #endif
 
-#if !defined (_CRT_SECURE_NO_WARNINGS) || 
(_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES == 0)
+#if !defined (_CRT_SECURE_NO_WARNINGS)
 #  define __MINGW_ATTRIB_DEPRECATED_SEC_WARN \
       __MINGW_ATTRIB_DEPRECATED_STR(__MINGW_SEC_WARN_STR)
 #else
-- 
2.48.1

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

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

Reply via email to