From b56f10c8902487143dc25c811255e8e22dd30846 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 25 Apr 2022 14:27:43 +0100 Subject: [PATCH] Revert "glib/gstdio: simplify GStatBuf macro condition for win64" This reverts commit ae1cccaa0ae08ac6ced3bb1fb225065fc71bf65b. It broke ABI on 64-bit builds with MSVC, as discussed here: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2449#note_1430571. Fixes: #2633 --- glib/gstdio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gstdio.h b/glib/gstdio.h index 20d066c70..4af0efdb6 100644 --- a/glib/gstdio.h +++ b/glib/gstdio.h @@ -44,7 +44,7 @@ G_BEGIN_DECLS typedef struct _stat32 GStatBuf; -#elif defined(_WIN64) +#elif defined(__MINGW64_VERSION_MAJOR) && defined(_WIN64) typedef struct _stat64 GStatBuf;