1/* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3 *
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.
8 *
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.
13 *
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/>.
16 */
17
18/*
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/.
23 */
24
25#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
26#error "Only <gtk/gtk.h> can be included directly."
27#endif
28
29#ifndef __GTK_VERSION_H__
30#define __GTK_VERSION_H__
31
32#include <gdk/gdk.h>
33
34G_BEGIN_DECLS
35
36/**
37 * GTK_MAJOR_VERSION:
38 *
39 * Like [func@get_major_version], but from the headers used at
40 * application compile time, rather than from the library linked
41 * against at application run time.
42 */
43#define GTK_MAJOR_VERSION (4)
44
45/**
46 * GTK_MINOR_VERSION:
47 *
48 * Like [func@get_minor_version], but from the headers used at
49 * application compile time, rather than from the library linked
50 * against at application run time.
51 */
52#define GTK_MINOR_VERSION (6)
53
54/**
55 * GTK_MICRO_VERSION:
56 *
57 * Like [func@get_micro_version], but from the headers used at
58 * application compile time, rather than from the library linked
59 * against at application run time.
60 */
61#define GTK_MICRO_VERSION (7)
62
63/**
64 * GTK_BINARY_AGE:
65 *
66 * Like [func@get_binary_age], but from the headers used at
67 * application compile time, rather than from the library linked
68 * against at application run time.
69 */
70#define GTK_BINARY_AGE (607)
71
72/**
73 * GTK_INTERFACE_AGE:
74 *
75 * Like [func@get_interface_age], but from the headers used at
76 * application compile time, rather than from the library linked
77 * against at application run time.
78 */
79#define GTK_INTERFACE_AGE (7)
80
81/**
82 * GTK_CHECK_VERSION:
83 * @major: major version (e.g. 1 for version 1.2.5)
84 * @minor: minor version (e.g. 2 for version 1.2.5)
85 * @micro: micro version (e.g. 5 for version 1.2.5)
86 *
87 * Returns %TRUE if the version of the GTK header files
88 * is the same as or newer than the passed-in version.
89 *
90 * Returns: %TRUE if GTK headers are new enough
91 */
92#define GTK_CHECK_VERSION(major,minor,micro) \
93 (GTK_MAJOR_VERSION > (major) || \
94 (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION > (minor)) || \
95 (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION == (minor) && \
96 GTK_MICRO_VERSION >= (micro)))
97
98GDK_AVAILABLE_IN_ALL
99guint gtk_get_major_version (void) G_GNUC_CONST;
100GDK_AVAILABLE_IN_ALL
101guint gtk_get_minor_version (void) G_GNUC_CONST;
102GDK_AVAILABLE_IN_ALL
103guint gtk_get_micro_version (void) G_GNUC_CONST;
104GDK_AVAILABLE_IN_ALL
105guint gtk_get_binary_age (void) G_GNUC_CONST;
106GDK_AVAILABLE_IN_ALL
107guint gtk_get_interface_age (void) G_GNUC_CONST;
108
109GDK_AVAILABLE_IN_ALL
110const char * gtk_check_version (guint required_major,
111 guint required_minor,
112 guint required_micro);
113
114G_END_DECLS
115
116#endif /* __GTK_VERSION_H__ */
117

source code of gtk/build/gtk/gtkversion.h