mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +01:00
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:
parent
16169c8773
commit
d0ff4055af
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user