mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-28 06:52:57 +00:00
fix incompatible types warning: 'fluid_stat_buf_t *' to '_stat64i32 *'
only occurs on Win64 with glib < 2.26
This commit is contained in:
parent
4d8574d38a
commit
70fbabf97c
1 changed files with 10 additions and 1 deletions
|
@ -373,7 +373,16 @@ 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 */
|
||||
/* GStatBuf has not been introduced yet, manually typedef it, stolen from GLib 2.57.3:
|
||||
* https://github.com/GNOME/glib/blob/90815c160b1c2cc15821e0dffa44ff7c4aa2787c/glib/gstdio.h#L28-L55
|
||||
*/
|
||||
#if (defined (__MINGW64_VERSION_MAJOR) || defined (_MSC_VER)) && !defined(_WIN64)
|
||||
typedef struct _stat32 GStatBuf;
|
||||
#elif defined(__MINGW64_VERSION_MAJOR) && defined(_WIN64)
|
||||
typedef struct _stat64 GStatBuf;
|
||||
#else
|
||||
typedef struct stat GStatBuf;
|
||||
#endif
|
||||
#else
|
||||
typedef GStatBuf fluid_stat_buf_t;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue