gstdio: Ignore POSIX stdio wrappers under g-ir-scanner

Just as they were ignored under gtk-doc, ignore them when scanning the
sources using `g-ir-scanner`, and make it look at the full function
declarations instead.

This fixes inclusion of functions like `g_creat()` in the documentation.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3037
This commit is contained in:
Philip Withnall 2023-11-15 16:10:47 +00:00
parent 3c42b9c3ee
commit 40e6a09d37

View File

@ -57,7 +57,7 @@ typedef struct stat GStatBuf;
#endif
#if defined(G_OS_UNIX) && !defined(G_STDIO_WRAP_ON_UNIX)
#if defined(G_OS_UNIX) && !defined(G_STDIO_WRAP_ON_UNIX) && !defined(__GI_SCANNER__)
/* Just pass on to the system functions, so there's no potential for data
* format mismatches, especially with large file interfaces.