1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00

AK: Don't include winsock2.h in Time.h

This is architecturally preferable, see https://github.com/LadybirdBrowser/ladybird/blob/master/Documentation/Porting.md#windows
and 1310437609
(note: winsock2.h includes windows.h)
This commit is contained in:
stasoid 2024-11-18 12:39:06 +05:00 committed by Jelle Raaijmakers
parent 67db10f26e
commit ac590fe30d
Notes: github-actions[bot] 2024-11-29 09:56:43 +00:00
2 changed files with 9 additions and 7 deletions

View file

@ -7,11 +7,10 @@
#include <AK/Checked.h>
#include <AK/Time.h>
#include <time.h>
#if defined(AK_OS_WINDOWS)
# include <profileapi.h>
#else
# include <sys/time.h>
#ifdef AK_OS_WINDOWS
# define timeval dummy_timeval
# include <windows.h>
# undef timeval
#endif
namespace AK {