mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibCore: Port DateTime to Windows
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user