From e58abedf28ef1c77512ae1a0d84261cf42b5ffb9 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 2 Feb 2024 14:39:46 +0000 Subject: [PATCH] Revert "gwin32: Un-hide symbols when building GIR" This reverts commit 50d432c77b07574e16d0bf8ba0de93819e5f92a3. The platform-specific headers of GLib and Gio are now introspected separately, so the documentation for them can be built separately, and this workaround is no longer needed. Helps: #3037 --- glib/gwin32.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/glib/gwin32.h b/glib/gwin32.h index a44c4c8ca..e38a7f90a 100644 --- a/glib/gwin32.h +++ b/glib/gwin32.h @@ -33,7 +33,7 @@ #include -#if defined(G_PLATFORM_WIN32) || defined(__GI_SCANNER__) +#ifdef G_PLATFORM_WIN32 G_BEGIN_DECLS @@ -41,7 +41,7 @@ G_BEGIN_DECLS #define MAXPATHLEN 1024 #endif -#if defined(G_OS_WIN32) || defined(__GI_SCANNER__) +#ifdef G_OS_WIN32 /* * To get prototypes for the following POSIXish functions, you have to @@ -68,7 +68,7 @@ G_BEGIN_DECLS GLIB_AVAILABLE_IN_ALL gint g_win32_ftruncate (gint f, guint size); -#endif /* G_OS_WIN32 || __GI_SCANNER__ */ +#endif /* G_OS_WIN32 */ /* The MS setlocale uses locale names of the form "English_United * States.1252" etc. We want the Unixish standard form "en", "zh_TW" @@ -137,6 +137,6 @@ gboolean g_win32_check_windows_version (const gint major, G_END_DECLS -#endif /* G_PLATFORM_WIN32 || __GI_SCANNER__ */ +#endif /* G_PLATFORM_WIN32 */ #endif /* __G_WIN32_H__ */