提交 d8a357e0 编写于 作者: J jp9000

image-source: Use os_stat instead of stat

(Note: This commit also modified text-freetype2)

Prevents issues from being able to update files that may not be using
the current system encoding on windows.
上级 81ac57cd
......@@ -30,7 +30,7 @@ struct image_source {
static time_t get_modified_timestamp(const char *filename)
{
struct stat stats;
if (stat(filename, &stats) != 0)
if (os_stat(filename, &stats) != 0)
return -1;
return stats.st_mtime;
}
......
......@@ -319,7 +319,7 @@ time_t get_modified_timestamp(char *filename)
// stat is apparently terrifying and horrible, but we only call it once
// every second at most.
if (stat(filename, &stats) != 0)
if (os_stat(filename, &stats) != 0)
return -1;
return stats.st_mtime;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册