14 lines
389 B
Diff
14 lines
389 B
Diff
|
--- libcpp/macro.c.bak 2022-04-26 16:10:45.030907031 +1000
|
||
|
+++ libcpp/macro.c 2022-04-26 16:16:10.791129868 +1000
|
||
|
@@ -509,6 +509,10 @@
|
||
|
struct stat *st = _cpp_get_file_stat (file);
|
||
|
if (st)
|
||
|
tb = localtime (&st->st_mtime);
|
||
|
+ if (st) {
|
||
|
+ const time_t mtime = (const time_t) st->st_mtime;
|
||
|
+ tb = localtime (&mtime);
|
||
|
+ }
|
||
|
if (tb)
|
||
|
{
|
||
|
char *str = asctime (tb);
|