Fix building on GLib older than 2.25.
[claws.git] / src / common / utils.h
index ff01d83977112a5bf4a5f17d46afca475027a0d8..3771d45186aa0aec3fdcdea02ef1ae06f155535a 100644 (file)
@@ -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