summaryrefslogtreecommitdiff
path: root/evutil.c
diff options
context:
space:
mode:
authorEdoardo Lolletti <edoardo762@gmail.com>2023-02-12 16:19:35 +0100
committerGitHub <noreply@github.com>2023-02-12 16:19:35 +0100
commit765fb4108d06726b43a30afda8a6e3b55b5e91b3 (patch)
tree4504f06ca905e31e1f1ebf96b961e0a0640c962b /evutil.c
parent61de8a07c5b4c9d58a8c4acf42b58fb3fecba30a (diff)
downloadlibevent-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.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/evutil.c b/evutil.c
index bbf908c0..75fcdf5d 100644
--- a/evutil.c
+++ b/evutil.c
@@ -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