gstdio: Warn if g_autofd is used with GLIB_VERSION_MAX_ALLOWED < 2.76

Fixes: b3934133 "gstdio: Add g_clear_fd() and g_autofd"
Helps: #2796
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2022-10-27 12:16:13 +01:00
parent 16169c8773
commit d0ff4055af

View File

@ -207,7 +207,7 @@ _g_clear_fd_ignore_error (int *fd_ptr)
}
}
#define g_autofd _GLIB_CLEANUP(_g_clear_fd_ignore_error)
#define g_autofd _GLIB_CLEANUP(_g_clear_fd_ignore_error) GLIB_AVAILABLE_MACRO_IN_2_76
#endif
G_END_DECLS