/* * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ module glib.gversion; import glib.gtypes; extern (C) { extern __gshared const(guint) glib_major_version; extern __gshared const(guint) glib_minor_version; extern __gshared const(guint) glib_micro_version; extern __gshared const(guint) glib_interface_age; extern __gshared const(guint) glib_binary_age; const(gchar) * glib_check_version (guint required_major, guint required_minor, guint required_micro); } auto GLIB_CHECK_VERSION(guint maj, guint min, guint mic) { return GLIB_MAJOR_VERSION > (maj) || (GLIB_MAJOR_VERSION == (maj) && GLIB_MINOR_VERSION > (min)) || (GLIB_MAJOR_VERSION == (maj) && GLIB_MINOR_VERSION == (min) && GLIB_MICRO_VERSION >= (mic)); }