LIU Hao wrote:

> 在 2026-5-21 12:05, Kirill Makurin 写道:
>> Hello,
>>
>> While working on recent changes in my posix32 library, I found out that 
>> since this commit[1], library fails to build with mingw-w64 headers when 
>> configured for UWP.
>>
>> The reason is that mingw-w64's heapapi.h guards declarations of 
>> `HeapSummary` function and `*HEAP_SUMMARY` typedefs under 
>> `WINAPI_PARTITION_DESKTOP`, while recent Microsoft headers guard it under 
>> `WINAPI_PARTITION_APP`.
>>
>> This patch fixes it.
>
> This patch looks good to me. I have pushed it to master now. Thanks.

After this patch was pushed, I started working on fixing some minor issues with 
UWP configuration so I could push them whenever updated heapapi.h gets 
available in Msys2.

After some testing, I realized that while `HeapSummary` and related types are 
exposed for UWP compilation even in Microsoft's haeders, it seems like 
`HeapSummary` is not available in any API set; `dumpbin -imports` lists 
`HeapSummary` as imported directly from kernel32.dll rather than an API set. 
This article[1] further confirms it...

Now I'm starting to question whether this change was correct. What do you 
think, should we revert it or keep it for compatibility with Microsoft headers?

- Kirill Makurin

[1] https://learn.microsoft.com/en-us/uwp/win32-and-com/win32-apis

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to