forked from AuroraMiddleware/gtk
Add compatibility shim for g_memdup2()
We don't necessarily want to depend on a newer version of GLib, given that we're not really using g_memdup() in the wrong way.
This commit is contained in:
parent
0cc43e10a5
commit
965e74f902
@ -49,4 +49,12 @@ guint gdk_parse_debug_var (const char *variable,
|
||||
const GdkDebugKey *keys,
|
||||
guint nkeys);
|
||||
|
||||
/* Backward compatibility shim, to avoid bumping up the minimum
|
||||
* required version of GLib; most of our uses of g_memdup() are
|
||||
* safe, and those that aren't have been fixed
|
||||
*/
|
||||
#if !GLIB_CHECK_VERSION (2, 67, 3)
|
||||
# define g_memdup2(mem,size) g_memdup((mem),(size))
|
||||
#endif
|
||||
|
||||
#endif /* __GDK__PRIVATE_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user