[glib: 1/2] Revert "glib/gstdio: simplify GStatBuf macro condition for win64"




commit b56f10c8902487143dc25c811255e8e22dd30846
Author: Philip Withnall <pwithnall endlessos org>
Date:   Mon Apr 25 14:27:43 2022 +0100

    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 20d066c708..4af0efdb60 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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]