diff options
author | Edoardo Lolletti <edoardo762@gmail.com> | 2023-02-12 16:19:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-12 16:19:35 +0100 |
commit | 765fb4108d06726b43a30afda8a6e3b55b5e91b3 (patch) | |
tree | 4504f06ca905e31e1f1ebf96b961e0a0640c962b /evutil.c | |
parent | 61de8a07c5b4c9d58a8c4acf42b58fb3fecba30a (diff) | |
download | libevent-765fb4108d06726b43a30afda8a6e3b55b5e91b3.tar.gz |
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.
Diffstat (limited to 'evutil.c')
-rw-r--r-- | evutil.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -31,7 +31,6 @@ #include <winsock2.h> #include <winerror.h> #include <ws2tcpip.h> -#include <stringapiset.h> #ifdef EVENT__HAVE_AFUNIX_H #include <afunix.h> #endif |