1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
19 * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS
20 * file for a list of people on the GTK+ Team. See the ChangeLog
21 * files for a list of changes. These files are distributed with
22 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
25 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
26 #error "Only <gtk/gtk.h> can be included directly."
29 #ifndef __GTK_VERSION_H__
30 #define __GTK_VERSION_H__
34 * @Short_description: Variables and functions to check the GTK+ version
35 * @Title: Version Information
37 * GTK+ provides version information, primarily useful in configure checks
38 * for builds that have a configure script. Applications will not typically
39 * use the features described here.
45 * Like gtk_get_major_version(), but from the headers used at
46 * application compile time, rather than from the library linked
47 * against at application run time.
49 #define GTK_MAJOR_VERSION (@GTK_MAJOR_VERSION@)
54 * Like gtk_get_minor_version(), but from the headers used at
55 * application compile time, rather than from the library linked
56 * against at application run time.
58 #define GTK_MINOR_VERSION (@GTK_MINOR_VERSION@)
63 * Like gtk_get_micro_version(), but from the headers used at
64 * application compile time, rather than from the library linked
65 * against at application run time.
67 #define GTK_MICRO_VERSION (@GTK_MICRO_VERSION@)
72 * Like gtk_get_binary_age(), but from the headers used at
73 * application compile time, rather than from the library linked
74 * against at application run time.
76 #define GTK_BINARY_AGE (@GTK_BINARY_AGE@)
81 * Like gtk_get_interface_age(), but from the headers used at
82 * application compile time, rather than from the library linked
83 * against at application run time.
85 #define GTK_INTERFACE_AGE (@GTK_INTERFACE_AGE@)
89 * @major: major version (e.g. 1 for version 1.2.5)
90 * @minor: minor version (e.g. 2 for version 1.2.5)
91 * @micro: micro version (e.g. 5 for version 1.2.5)
93 * Returns %TRUE if the version of the GTK+ header files
94 * is the same as or newer than the passed-in version.
96 #define GTK_CHECK_VERSION(major,minor,micro) \
97 (GTK_MAJOR_VERSION > (major) || \
98 (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION > (minor)) || \
99 (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION == (minor) && \
100 GTK_MICRO_VERSION >= (micro)))
102 #endif /* __GTK_VERSION_H__ */