fix compilation below GLib v2.26.0

GStatBuf was introduced in GLib v2.26.0, fixes #389
This commit is contained in:
KO Myung-Hun 2018-05-28 23:19:30 +09:00 committed by derselbst
parent c7a3eb34a4
commit 85356d2732

View file

@ -368,7 +368,11 @@ fluid_istream_t fluid_socket_get_istream(fluid_socket_t sock);
fluid_ostream_t fluid_socket_get_ostream(fluid_socket_t sock);
/* File access */
#if !GLIB_CHECK_VERSION(2, 26, 0)
typedef struct stat fluid_stat_buf_t; /* GStatBuf has not been introduced yet */
#else
typedef GStatBuf fluid_stat_buf_t;
#endif
#define fluid_stat(_filename, _statbuf) g_stat((_filename), (_statbuf))