[sylpheed:35061] Re: struct stat vs GStatBuf

Gisle Vanem gvanem at broadpark.no
Mon Jan 9 01:33:59 JST 2012


"Gisle Vanem" <gvanem at broadpark.no> wrote:

> If I add '-D_TIME32_T_DEFINED' to my CFLAGS, all is well. Since
> 'st_*time' in 'struc stat' then becomes the old 32-bit 'time_t'.

Just discovered that it only seems to apply to _RELEASE builds. Just
more alarming. Could anybody verify with the attached program on 
MSVC+Glib. Output here (Glib 2.28.1 + cl 16.00):

  "struct stat::st_ctime" at ofs 40, "GStatBuf::st_ctime" at ofs 32
  Warning: mismatching sizes of 'struct stat' and 'GStatBuf'. 48 vs. 36 bytes.

--gv
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: stat_test.c
URL: <http://www.sraoss.jp/pipermail/sylpheed/attachments/20120108/4be0279f/attachment.c>


More information about the Sylpheed mailing list