[glib: 2/5] glib/gstdio: simplify GStatBuf macro condition for win64
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/5] glib/gstdio: simplify GStatBuf macro condition for win64
- Date: Thu, 14 Apr 2022 12:16:20 +0000 (UTC)
commit ae1cccaa0ae08ac6ced3bb1fb225065fc71bf65b
Author: Marc-André Lureau <marcandre lureau redhat com>
Date: Fri Feb 4 14:54:02 2022 +0400
glib/gstdio: simplify GStatBuf macro condition for win64
As noted by Charlie Barto: "both mingw64 and msvc define _WIN64 in
64-bit mode, and both are LLP64, and both have struct _stat64 defined
the same way."
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2449#note_1372190
Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>
glib/gstdio.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gstdio.h b/glib/gstdio.h
index 4af0efdb60..20d066c708 100644
--- a/glib/gstdio.h
+++ b/glib/gstdio.h
@@ -44,7 +44,7 @@ G_BEGIN_DECLS
typedef struct _stat32 GStatBuf;
-#elif defined(__MINGW64_VERSION_MAJOR) && defined(_WIN64)
+#elif defined(_WIN64)
typedef struct _stat64 GStatBuf;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]