]> granicus.if.org Git - libevent/commit
Fix compilation on non recent windows SDKs (#1399)
authorEdoardo Lolletti <edoardo762@gmail.com>
Sun, 12 Feb 2023 15:19:35 +0000 (16:19 +0100)
committerGitHub <noreply@github.com>
Sun, 12 Feb 2023 15:19:35 +0000 (16:19 +0100)
commit765fb4108d06726b43a30afda8a6e3b55b5e91b3
tree4504f06ca905e31e1f1ebf96b961e0a0640c962b
parent61de8a07c5b4c9d58a8c4acf42b58fb3fecba30a
Fix compilation on non recent windows SDKs (#1399)

In commit f8bb9d8 the header stringapiset.h was included, very likely because the user who made the change saw that the funciton WideCharToMultiByte is "declared" in there.
That header tho is a recent addition to the windows headers added in the last years in an attempt from microsoft to split the windows.h header in multiple files, so the inclusion fails when the library is not built with the latest visual studio using the latest windows 10 sdk.
That inclusion can be safely removed as in any case the function WideCharToMultiByte was already included by the windows.h header that is included few lines below.
evutil.c