mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-22 03:41:16 +00:00
fix compilation below GLib v2.26.0
GStatBuf was introduced in GLib v2.26.0, fixes #389
This commit is contained in:
parent
c7a3eb34a4
commit
85356d2732
1 changed files with 4 additions and 0 deletions
|
@ -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))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue