Skip to content
Snippets Groups Projects
Commit cdef2bb4 authored by Simon McVittie's avatar Simon McVittie
Browse files

backports: Use #ifndef instead of GLIB_CHECK_VERSION


As Will Thompson pointed out on !37, G_OPTION_ENTRY_NULL is a macro in
GLib, so we can test for it with `#ifndef` rather than a version guard.
This is a little bit nicer for parent projects that might already have
their own backport of it.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 0b5d4a07
No related branches found
No related tags found
1 merge request!504Update libglnx
......@@ -84,7 +84,7 @@ gboolean glnx_set_object (GObject **object_ptr,
#define G_DBUS_METHOD_INVOCATION_UNHANDLED FALSE
#endif
#if !GLIB_CHECK_VERSION(2, 70, 0)
#ifndef G_OPTION_ENTRY_NULL /* added in 2.70 */
#define G_OPTION_ENTRY_NULL { NULL, 0, 0, 0, NULL, NULL, NULL }
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment