Avoid use of stat() in procheader_parse_file() on Windows.
authorAndrej Kacian <ticho@claws-mail.org>
Sat, 28 Oct 2017 12:49:47 +0000 (14:49 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Sat, 28 Oct 2017 12:49:47 +0000 (14:49 +0200)
commitefd5c578268bdb7732734240e796d63c178a875f
tree81c97800543cbc8126c2bd43cf00d6963fd25422
parent3f84a59b732d8a5de35a2300b7dd89fff4898ed0
Avoid use of stat() in procheader_parse_file() on Windows.

Since GLib on different Windows versions has different
ideas about sizes of struct stat field sizes and is
inconsistent about it on 64-bit systems, we take advice
from GLib's own gstdio.h, and use GIO API to get file
attributes instead.

This will likely have to be changed for all uses of
stat() or g_stat() elsewhere.

All this to stop Claws Mail showing "1GB" size for all
emails in summaryview on 64-bit Win10.
src/procheader.c