On Mon, 9 Feb 2026, LIU Hao wrote:

This series of patches attempt to remove some non-reserved identifiers from _mingw.h.

`MINGW_HAS_SECURE_API` is a leftover from 3bef7c2206bb6f9552ea7e61315c4bf7af3aa6c9. There was a reference in [1] where they used to provide their own `*_s` functions. This piece of code has been removed.

No reference to `MINGW_HAS_DDK` exists in the wild. There's a known user of DDK [2], but they don't check for this macro.

`MINGW_SDK_INIT` protects these macros from being defined more than once. There was a referece in LuaJIT [3] because the second parameter of `RtlUnwindEx()` was incorrectly declared as an integer. The declaration was fixed in 952dce438458357a3b39d13c808a2f0122841017, and LuaJIT can be built with or without this macro.


[1] (Japanese) https://github.com/berryzplus/sakura-editor/commit/726fcd897a6de3d3feddb066e311b630c9a99e83#diff-1fb2ba11e6b0c80e9f486db18aa360a1136873a31b6d2071a6c022343b489e6bL219
[2] https://github.com/utoni/mingw-w64-dpp/
[3] https://github.com/LuaJIT/LuaJIT/commit/c63a1607068a7698c8d26bde84a0f3ca0a5cfd03

LGTM; that's good work digging up these references.

// Martin



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

Reply via email to