On Wed, 21 Feb 2024, LIU Hao wrote:
Since Windows SDK 8.0, `STRSAFE_NO_DEPRECATE` no longer has an effect. It's still defined by some headers, but the check in 'strsafe.h' has been removed. Those macros that match POSIX names have been moved to 'dontuse.h', so we do the same. This allows including 'strsafe.h' before 'windows.h'.
Can you mention in the commit message, what used to break if strsafe.h was included befoe windows.h?
The commit message explains that we're moveing a bunch of macros from strsafe.h into dontuse.h, but in the diff, I'm also seeing a bunch of other minor changes - the macros for e.g. StringCopyWorkerA have lost their unnecessary trailing semicolons; can we get that change in a separate commit for clarity? And I see a new "#ifndef DEPRECATE_SUPPORTED" wrapped around that as well, which also seems to not be explained in the commit message?
// Martin _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public