mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Fix a gcc -Wformat= warning with C89_BUILD.
The posix spec claims "%r" is equivelent to "%I : %M : %S %p". Source: http://pubs.opengroup.org/onlinepubs/9699919799/functions/strftime.html menu/menu_driver.c:395:15: warning: ISO C90 does not support the ‘%r’ gnu_strftime format [-Wformat=] "%r", localtime(&time_)); ^
This commit is contained in:
parent
30e5f1dfef
commit
169002ef7f
@ -392,7 +392,7 @@ void menu_display_timedate(menu_display_ctx_datetime_t *datetime)
|
||||
case 7: /* Time (hours-minutes), in 12 hour AM-PM designation */
|
||||
#if defined(__linux__) && !defined(ANDROID)
|
||||
strftime(datetime->s, datetime->len,
|
||||
"%r", localtime(&time_));
|
||||
"%I : %M : %S %p", localtime(&time_));
|
||||
#else
|
||||
{
|
||||
char *local;
|
||||
|
Loading…
x
Reference in New Issue
Block a user