From 314a446fa18537d4764d0a7d3eb880bb285ec440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20No=C3=ABl?= Date: Thu, 30 Jan 2025 14:50:17 +0100 Subject: [PATCH] gstdio: Only ever use __GI_SCANNER__ with ifdef and ifndef It is getting ignored if used with anything else --- glib/gstdio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/gstdio.h b/glib/gstdio.h index 9fbc12d7c..fc2ce3c21 100644 --- a/glib/gstdio.h +++ b/glib/gstdio.h @@ -57,7 +57,7 @@ typedef struct stat GStatBuf; #endif -#if defined(G_OS_UNIX) && !defined(G_STDIO_WRAP_ON_UNIX) && !defined(__GI_SCANNER__) +#if defined(G_OS_UNIX) && !defined(G_STDIO_WRAP_ON_UNIX) /* Just pass on to the system functions, so there's no potential for data * format mismatches, especially with large file interfaces. @@ -81,7 +81,7 @@ typedef struct stat GStatBuf; #define g_freopen freopen #define g_fsync fsync #define g_utime utime -#endif +#endif /* !__GTK_DOC_IGNORE__ */ GLIB_AVAILABLE_IN_ALL int g_access (const gchar *filename,