mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00: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 https://discord.com/channels/1247070541085671459/1306918361732616212/1310437609679487006 (note: winsock2.h includes windows.h)
This commit is contained in:
parent
67db10f26e
commit
ac590fe30d
Notes:
github-actions[bot]
2024-11-29 09:56:43 +00:00
Author: https://github.com/stasoid
Commit: ac590fe30d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2414
2 changed files with 9 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue