Skip to content

Commit

Permalink
LibCore: Port DateTime to Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
stasoid authored and ADKaster committed Nov 4, 2024
1 parent 3ca2790 commit 38aa051
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Userland/Libraries/LibCore/DateTime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 38aa051

Please sign in to comment.