[Mingw-w64-public] [PATCH] headers: Add more stub macos in sal.h.
From e8fd26bd200c7c4b10a5c0da91a44ead0a72d6ad Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Tue, 22 Dec 2020 12:47:54 +0530 Subject: [PATCH] headers: Add more stub macos in sal.h. Required for assimp https://github.com/assimp/assimp.git Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/include/sal.h | 121 1 file changed, 121 insertions(+) diff --git a/mingw-w64-headers/include/sal.h b/mingw-w64-headers/include/sal.h index a5ad938..de4938f 100644 --- a/mingw-w64-headers/include/sal.h +++ b/mingw-w64-headers/include/sal.h @@ -37,6 +37,29 @@ #define _In_reads_to_ptr_z_(p) #define _In_reads_to_ptr_opt_z_(p) +#define _In_count_(s) +#define _In_opt_count_(s) +#define _In_bytecount_(s) +#define _In_opt_bytecount_(s) +#define _In_count_c_(s) +#define _In_opt_count_c_(s) +#define _In_bytecount_c_(s) +#define _In_opt_bytecount_c_(s) +#define _In_z_count_(s) +#define _In_opt_z_count_(s) +#define _In_z_bytecount_(s) +#define _In_opt_z_bytecount_(s) +#define _In_z_count_c_(s) +#define _In_opt_z_count_c_(s) +#define _In_z_bytecount_c_(s) +#define _In_opt_z_bytecount_c_(s) +#define _In_ptrdiff_count_(s) +#define _In_opt_ptrdiff_count_(s) +#define _In_count_x_(s) +#define _In_opt_count_x_(s) +#define _In_bytecount_x_(s) +#define _In_opt_bytecount_x_(s) + /* Output parameters */ #define _Out_ #define _Out_opt_ @@ -59,6 +82,57 @@ #define _Out_writes_to_ptr_z_(p) #define _Out_writes_to_ptr_opt_z_(p) +#define _Out_cap_(s) +#define _Out_opt_cap_(s) +#define _Out_bytecap_(s) +#define _Out_opt_bytecap_(s) +#define _Out_cap_c_(s) +#define _Out_opt_cap_c_(s) +#define _Out_bytecap_c_(s) +#define _Out_opt_bytecap_c_(s) +#define _Out_cap_m_(m, s) +#define _Out_opt_cap_m_(m, s) +#define _Out_z_cap_m_(m, s) +#define _Out_opt_z_cap_m_(m, s) +#define _Out_ptrdiff_cap_(s) +#define _Out_opt_ptrdiff_cap_(s) +#define _Out_cap_x_(s) +#define _Out_opt_cap_x_(s) +#define _Out_bytecap_x_(s) +#define _Out_opt_bytecap_x_(s) +#define _Out_z_cap_(s) +#define _Out_opt_z_cap_(s) +#define _Out_z_bytecap_(s) +#define _Out_opt_z_bytecap_(s) +#define _Out_z_cap_c_(s) +#define _Out_opt_z_cap_c_(s) +#define _Out_z_bytecap_c_(s) +#define _Out_opt_z_bytecap_c_(s) +#define _Out_z_cap_x_(s) +#define _Out_opt_z_cap_x_(s) +#define _Out_z_bytecap_x_(s) +#define _Out_opt_z_bytecap_x_(s) +#define _Out_cap_post_count_(a, o) +#define _Out_opt_cap_post_count_(a, o) +#define _Out_bytecap_post_bytecount_(a, o) +#define _Out_opt_bytecap_post_bytecount_(a, o) +#define _Out_z_cap_post_count_(a, o) +#define _Out_opt_z_cap_post_count_(a, o) +#define _Out_z_bytecap_post_bytecount_(a, o) +#define _Out_opt_z_bytecap_post_bytecount_(a, o) +#define _Out_capcount_(c) +#define _Out_opt_capcount_(c) +#define _Out_bytecapcount_(c) +#define _Out_opt_bytecapcount_(c) +#define _Out_capcount_x_(c) +#define _Out_opt_capcount_x_(c) +#define _Out_bytecapcount_x_(c) +#define _Out_opt_bytecapcount_x_(c) +#define _Out_z_capcount_(c) +#define _Out_opt_z_capcount_(c) +#define _Out_z_bytecapcount_(c) +#define _Out_opt_z_bytecapcount_(c) + /* Inout parameters */ #define _Inout_ #define _Inout_opt_ @@ -79,6 +153,53 @@ #define _Inout_updates_bytes_all_(s) #define _Inout_updates_bytes_all_opt_(s) +#define _Inout_count_(s) +#define _Inout_opt_count_(s) +#define _Inout_bytecount_(s) +#define _Inout_opt_bytecount_(s) +#define _Inout_count_c_(s) +#define _Inout_opt_count_c_(s) +#define _Inout_bytecount_c_(s) +#define _Inout_opt_bytecount_c_(s) +#define _Inout_z_count_(s) +#define _Inout_opt_z_count_(s) +#define _Inout_z_bytecount_(s) +#define _Inout_opt_z_bytecount_(s) +#define _Inout_z_count_c_(s) +#define _Inout_opt_z_count_c_(s) +#define _Inout_z_bytecount_c_(s) +#define _Inout_opt_z_bytecount_c_(s) +#define _Inout_ptrdiff_count_(s) +#define _Inout_opt_ptrdiff_count_(s) +#define _Inout_count_x_(s) +#define _Inout_opt_count_x_(s) +#define _Inout_bytecount_x_(s) +#define _Inout_opt_bytecount_x_(s) +#define _Inout_cap_(s) +#define _Inout_opt_cap_(s) +#define _Inout_bytecap_(s) +#define _Inout_opt_bytecap_(s) +#define _Inout_cap_c_(s) +#define _Inout_opt_cap_c_(s) +#define _Inout_bytecap_c_(s) +#define _Inout_opt_bytecap_c_(s) +#define _Inout_cap_x_(s) +#define _Inout_opt_cap_x_(s) +#define _Inout_bytecap_x_(s) +#define _Inout_opt_bytecap_x_(s) +#define _Inout_z_cap_(s) +#define _Inout_opt_z_cap_(s) +#define _Inout_z_bytecap_(s) +#define _Inout_opt_z_bytecap_(s) +#define _Inout_z_cap_c_(s) +#define _Inout_opt_z_cap_c_(s) +#define _Inout_z_bytecap_c_(s) +#define _Inout_opt_z_bytecap_c_(s) +#define _Inout_z_cap_x_(s) +#define _Inout_opt_z_cap_x_(s) +#define _Inout_z_bytecap_x_(s) +#define _Inout_opt_z_bytecap_x_(s) + /* Pointer to pointer parameters */ #define _Outptr_ #define _Outptr_result_maybenull_ -- 2.29.2 ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] [PATCH] headers: Add CompareObjectHandles in handleapi.h
在 2020/12/22 下午12:52, Biswapriyo Nath 写道: >> so shouldn't there be an `#if _WIN32_WINNT > > WinSDK does not have the winver guard there. If we have to apply this > rule we have to edit many other headers (if not hundreds). Updated > patch attached as asked. > I still consider it better to have something fail to compile, rather than something that can compile and linked successfully but fail upon execution. Some of them might have slipped through, but we can fix them gradually. I pushed this patch. Thanks. -- Best regards, LH_Mouse 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
Re: [Mingw-w64-public] [PATCH] headers: Add CompareObjectHandles in handleapi.h
在 2020/12/22 上午1:59, Biswapriyo Nath 写道: > diff --git a/mingw-w64-headers/include/handleapi.h > b/mingw-w64-headers/include/handleapi.h > index 0e0fd82..6f122b3 100644 > --- a/mingw-w64-headers/include/handleapi.h > +++ b/mingw-w64-headers/include/handleapi.h > @@ -18,6 +18,7 @@ extern "C" { > #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP) >WINBASEAPI WINBOOL WINAPI CloseHandle (HANDLE hObject); >WINBASEAPI WINBOOL WINAPI DuplicateHandle (HANDLE hSourceProcessHandle, > HANDLE hSourceHandle, HANDLE hTargetProcessHandle, LPHANDLE lpTargetHandle, > DWORD dwDesiredAccess, WINBOOL bInheritHandle, DWORD dwOptions); > + WINBASEAPI WINBOOL WINAPI CompareObjectHandles (HANDLE hFirstObjectHandle, > HANDLE hSecondObjectHandle); > #endif > This function is new in Windows 10, so shouldn't there be an `#if _WIN32_WINNT >= ... #endif` around it? The MS header lacks such a guard but I don't think they are right. -- Best regards, LH_Mouse 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
[Mingw-w64-public] [PATCH] headers: Add CompareObjectHandles in handleapi.h
From 213b458e045b4707a2fd8a0e9a6cfd86848121bb Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Mon, 21 Dec 2020 23:27:25 +0530 Subject: [PATCH] headers: Add CompareObjectHandles in handleapi.h Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/include/handleapi.h | 1 + 1 file changed, 1 insertion(+) diff --git a/mingw-w64-headers/include/handleapi.h b/mingw-w64-headers/include/handleapi.h index 0e0fd82..6f122b3 100644 --- a/mingw-w64-headers/include/handleapi.h +++ b/mingw-w64-headers/include/handleapi.h @@ -18,6 +18,7 @@ extern "C" { #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP) WINBASEAPI WINBOOL WINAPI CloseHandle (HANDLE hObject); WINBASEAPI WINBOOL WINAPI DuplicateHandle (HANDLE hSourceProcessHandle, HANDLE hSourceHandle, HANDLE hTargetProcessHandle, LPHANDLE lpTargetHandle, DWORD dwDesiredAccess, WINBOOL bInheritHandle, DWORD dwOptions); + WINBASEAPI WINBOOL WINAPI CompareObjectHandles (HANDLE hFirstObjectHandle, HANDLE hSecondObjectHandle); #endif #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) -- 2.29.2 ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] [PATCH] headers: Add more error codes in mferror.h.
在 2020/12/21 17:11, Biswapriyo Nath 写道: > Any update on this? > > Apologies for missing this. This patch looks good to me and I pushed it. -- Best regards, LH_Mouse 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
Re: [Mingw-w64-public] [PATCH] headers: Add mmddk.h file.
在 2020/12/21 3:19, Biswapriyo Nath 写道: > Subject: [PATCH] headers: Add mmddk.h file. > > Required for libdshowcapture https://github.com/obsproject/libdshowcapture.git > > Signed-off-by: Biswapriyo Nath > --- > mingw-w64-headers/include/mmddk.h | 544 ++ > 1 file changed, 544 insertions(+) > create mode 100644 mingw-w64-headers/include/mmddk.h > Looks good to me too. i pushed it. Thanks. -- Best regards, LH_Mouse 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
Re: [Mingw-w64-public] [PATCH] headers: Add more error codes in mferror.h.
Hasn't wine went into freezing zone i.e. no BIG change that can break things? ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] [PATCH] headers: Add more error codes in mferror.h.
On 12/21/20 12:11 PM, Biswapriyo Nath wrote: > Any update on this? I think it's good candidate to import from wine. > > > ___ > Mingw-w64-public mailing list > Mingw-w64-public@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] [PATCH] headers: Add more error codes in mferror.h.
Any update on this? ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public