lua: Fix Windows Simulator build.

(Basically, use the OS-provided gmtime() instead.  It's pulled in via
 another header we need..)

Change-Id: Ia09609a3a38dc58133a4a209cc803f0d9d0802f4
This commit is contained in:
Solomon Peachy 2024-06-22 10:06:47 -04:00
parent 231797dfa8
commit a1c526f35f

View file

@ -202,11 +202,13 @@ int strcoll(const char * str1, const char * str2)
return rb->strcmp(str1, str2);
}
#ifndef _WIN32
struct tm * gmtime(const time_t *timep)
{
static struct tm time;
return rb->gmtime_r(timep, &time);
}
#endif
int get_current_path(lua_State *L, int level)
{