Fix build on Windows
This commit is contained in:
@@ -6504,6 +6504,11 @@ my_g_format_time_for_display (glong secs)
|
|||||||
gchar *locale_format = NULL;
|
gchar *locale_format = NULL;
|
||||||
gchar buf[256];
|
gchar buf[256];
|
||||||
char *date_str = NULL;
|
char *date_str = NULL;
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
const char *locale, *dot = NULL;
|
||||||
|
gint64 codepage = -1;
|
||||||
|
char charset[20];
|
||||||
|
#endif
|
||||||
|
|
||||||
time_mtime = secs;
|
time_mtime = secs;
|
||||||
|
|
||||||
@@ -6511,7 +6516,7 @@ my_g_format_time_for_display (glong secs)
|
|||||||
localtime_r ((time_t *) &time_mtime, &tm_mtime);
|
localtime_r ((time_t *) &time_mtime, &tm_mtime);
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
struct tm *ptm = localtime ((time_t *) &timeval.tv_sec);
|
struct tm *ptm = localtime ((time_t *) &time_mtime);
|
||||||
|
|
||||||
if (!ptm)
|
if (!ptm)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user