]> git.ipfire.org Git - thirdparty/vala.git/commit
glib-2.0: Use 'GStatBuf' as ctype for 'Stat' e8830f4055493de50712fb157d06b76ca348f5dc
authorJeremy Philippe <jeremy.philippe@gmail.com>
Sun, 1 Sep 2019 22:47:42 +0000 (00:47 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 2 Sep 2019 08:27:27 +0000 (10:27 +0200)
commite8830f4055493de50712fb157d06b76ca348f5dc
tree85fe4c6ee579245396aeb90d3825ef80d58c28ac
parent6afaf446939802750da3c4b76bbca8a75dd27746
glib-2.0: Use 'GStatBuf' as ctype for 'Stat'

The documentation of g_stat () states:

In Microsoft's compiler, by default struct stat means one with
64-bit time fields while in MinGW struct stat is the legacy one
with 32-bit fields.

To hopefully clear up this mess, the gstdio.h header defines a
type GStatBuf which is the appropriate struct type depending
on the platform and/or compiler being used. On POSIX it is just
struct stat, but note that even on POSIX platforms, stat() might
be a macro.
vapi/glib-2.0.vapi