From 11dcd9362677de82e9a447596b01c67ccaac6d24 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <nathbap...@gmail.com>
Date: Tue, 10 Sep 2024 19:35:38 +0000
Subject: [PATCH 1/2] headers: Add new macros in specstrings.h

Required for https://sourceforge.net/p/mingw-w64/mailman/message/58813005/

Signed-off-by: Biswapriyo Nath <nathbap...@gmail.com>
---
 mingw-w64-headers/include/specstrings.h | 30 +++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/mingw-w64-headers/include/specstrings.h 
b/mingw-w64-headers/include/specstrings.h
index f2636a4..d576403 100644
--- a/mingw-w64-headers/include/specstrings.h
+++ b/mingw-w64-headers/include/specstrings.h
@@ -331,6 +331,36 @@ extern "C" {
 #endif
 #endif /* DECLSPEC_ADDRSAFE */
 
+#ifndef _Unreferenced_parameter_
+#define _Unreferenced_parameter_
+#endif
+#ifndef _Frees_ptr_
+#define _Frees_ptr_
+#endif
+#ifndef _Frees_ptr_opt_
+#define _Frees_ptr_opt_
+#endif
+#define _Reallocation_function_(a,b,s)
+#define _Ret_reallocated_bytes_(b,s)
+#define _In_NLS_string_(s)
+#define _Flt_CompletionContext_Outptr_
+#define _Flt_ConnectionCookie_Outptr_
+#ifndef _Writes_and_advances_ptr_
+#define _Writes_and_advances_ptr_(s)
+#endif
+#ifndef _Writes_bytes_and_advances_ptr_
+#define _Writes_bytes_and_advances_ptr_(s)
+#endif
+#ifndef _Translates_Win32_to_HRESULT_
+#define _Translates_Win32_to_HRESULT_(e)
+#endif
+#ifndef _Translates_NTSTATUS_to_HRESULT_
+#define _Translates_NTSTATUS_to_HRESULT_(s)
+#endif
+#ifndef _Translates_last_error_to_HRESULT_
+#define _Translates_last_error_to_HRESULT_
+#endif
+
 #ifdef __cplusplus
 }
 #endif
-- 
2.46.0

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

Reply via email to