mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
LibCore: Port DateTime to Windows
This commit is contained in:
parent
3ca2790a43
commit
38aa051f12
|
|
@ -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…
Reference in New Issue
Block a user