mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Provide more complete definitions for AK_OS_WINDOWS
MSG_NOSIGNAL is a no-op for Windows, so we can define it to 0. At the same *time*, none of the CLOCK_* macros are defined on Windows, as clock_gettime does not exist. Put AK_OS_WINDOWS in the same category of the BSDs for the COARSE versions of those macros. Co-authored-by: Andrew Kaster <akaster@serenityos.org>
This commit is contained in:
parent
e1710939ce
commit
958ffad706
Notes:
github-actions[bot]
2024-10-16 18:16:31 +00:00
Author: https://github.com/stasoid Commit: https://github.com/LadybirdBrowser/ladybird/commit/958ffad7062 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1806 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 2 additions and 2 deletions
|
@ -277,10 +277,10 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(AK_OS_WINDOWS)
|
#if defined(AK_OS_WINDOWS)
|
||||||
# define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC
|
# define MSG_NOSIGNAL 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(AK_OS_BSD_GENERIC) && !defined(AK_OS_FREEBSD) || defined(AK_OS_HAIKU)
|
#if defined(AK_OS_BSD_GENERIC) && !defined(AK_OS_FREEBSD) || defined(AK_OS_HAIKU) || defined(AK_OS_WINDOWS)
|
||||||
# define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC
|
# define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC
|
||||||
# define CLOCK_REALTIME_COARSE CLOCK_REALTIME
|
# define CLOCK_REALTIME_COARSE CLOCK_REALTIME
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue