mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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:
parent
231797dfa8
commit
a1c526f35f
1 changed files with 2 additions and 0 deletions
|
@ -202,11 +202,13 @@ int strcoll(const char * str1, const char * str2)
|
||||||
return rb->strcmp(str1, str2);
|
return rb->strcmp(str1, str2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
struct tm * gmtime(const time_t *timep)
|
struct tm * gmtime(const time_t *timep)
|
||||||
{
|
{
|
||||||
static struct tm time;
|
static struct tm time;
|
||||||
return rb->gmtime_r(timep, &time);
|
return rb->gmtime_r(timep, &time);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int get_current_path(lua_State *L, int level)
|
int get_current_path(lua_State *L, int level)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue