Merge branch 'mingw-iconcache-use-correct-fstat' into 'gtk-3-24'

gtkiconcache: use _fstat64 under 64bit mingw to match GStatBuf

See merge request GNOME/gtk!1067
This commit is contained in:
Matthias Clasen
2019-09-03 20:17:24 +00:00

View File

@ -111,6 +111,9 @@ _gtk_icon_cache_new_for_path (const gchar *path)
#if ((_MSC_VER >= 1400 || __MSVCRT_VERSION__ >= 0x0800) || defined (__MINGW64_VERSION_MAJOR)) && !defined(_WIN64) #if ((_MSC_VER >= 1400 || __MSVCRT_VERSION__ >= 0x0800) || defined (__MINGW64_VERSION_MAJOR)) && !defined(_WIN64)
#undef fstat /* Just in case */ #undef fstat /* Just in case */
#define fstat _fstat32 #define fstat _fstat32
#elif defined(__MINGW64_VERSION_MAJOR) && defined(_WIN64)
#undef fstat
#define fstat _fstat64
#endif #endif
#endif #endif