AK: Simplify usage of windows.h and winsock2.h

Use <AK/Windows.h> instead of windows.h/winsock2.h
to avoid timeval-related errors.

Note: winsock2.h includes windows.h
This commit is contained in:
stasoid
2024-12-01 14:43:10 +05:00
committed by Andrew Kaster
parent 3eefa464ee
commit 49bdda1475
4 changed files with 24 additions and 9 deletions

View File

@@ -8,8 +8,8 @@
#include <LibCore/EventLoopImplementationWindows.h>
#include <LibCore/Notifier.h>
#include <LibCore/ThreadEventQueue.h>
#include <WinSock2.h>
#include <io.h>
#include <AK/Windows.h>
struct Handle {
HANDLE handle = NULL;