mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-28 20:29:03 +00:00
LibCore: Port DateTime to Windows
This commit is contained in:
parent
3ca2790a43
commit
38aa051f12
Notes:
github-actions[bot]
2024-11-04 21:17:54 +00:00
Author: https://github.com/stasoid
Commit: 38aa051f12
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2050
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 7 additions and 0 deletions
|
@ -15,6 +15,13 @@
|
|||
#include <errno.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifdef AK_OS_WINDOWS
|
||||
# define tzname _tzname
|
||||
# define timegm _mkgmtime
|
||||
# define localtime_r(time, tm) localtime_s(tm, time)
|
||||
# define gmtime_r(time, tm) gmtime_s(tm, time)
|
||||
#endif
|
||||
|
||||
namespace Core {
|
||||
|
||||
static Optional<StringView> parse_time_zone_name(GenericLexer& lexer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue