talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit aab231b16fd07a9196fe882205658d33c78752d2
parent f085d057cdee7b1a3747f06f68e18d2379e45cf4
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Mon, 20 Jul 2015 19:57:05 +0200

Fix building on GLib older than 2.25.

Diffstat:
Msrc/common/utils.h | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/common/utils.h b/src/common/utils.h @@ -75,6 +75,14 @@ typedef gint64 goffset; #define HAVE_U32_TYPEDEF #endif +#if !GLIB_CHECK_VERSION(2, 25, 0) +# ifdef G_OS_WIN32 + typedef _g_stat_struct GStatBuf; +# else + typedef struct stat GStatBuf; +# endif +#endif + #ifndef BIG_ENDIAN_HOST #if (G_BYTE_ORDER == G_BIG_ENDIAN) #define BIG_ENDIAN_HOST 1