1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Variables and functions to check the GLib version
7 <!-- ##### SECTION Long_Description ##### -->
9 GLib provides version information, primarily useful in configure checks
10 for builds that have a configure script. Applications will not
11 typically use the features described here.
14 <!-- ##### SECTION See_Also ##### -->
19 <!-- ##### SECTION Stability_Level ##### -->
22 <!-- ##### MACRO GLIB_MAJOR_VERSION ##### -->
24 The major version number of the GLib library.
25 Like #glib_major_version, but from the headers used at
26 application compile time, rather than from the library linked against
27 at application run time.
32 <!-- ##### MACRO GLIB_MINOR_VERSION ##### -->
34 The minor version number of the GLib library.
35 Like #gtk_minor_version, but from the headers used at
36 application compile time, rather than from the library linked against
37 at application run time.
42 <!-- ##### MACRO GLIB_MICRO_VERSION ##### -->
44 The micro version number of the GLib library.
45 Like #gtk_micro_version, but from the headers used at
46 application compile time, rather than from the library linked against
47 at application run time.
52 <!-- ##### MACRO GLIB_CHECK_VERSION ##### -->
54 Checks the version of the GLib library.
55 Returns %TRUE if the version of the GLib header files is the same
56 as or newer than the passed-in version.
59 <title>Checking the version of the GLib library</title>
61 if (!GLIB_CHECK_VERSION (1, 2, 0))
62 g_error ("GLib version 1.2.0 or above is needed");
67 @major: the major version number.
68 @minor: the minor version number.
69 @micro: the micro version number.