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 | /** |
33 | * SECTION:gtkfeatures |
34 | * @Short_description: Variables and functions to check the GTK+ version |
35 | * @Title: Version Information |
36 | * |
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. |
40 | */ |
41 | |
42 | /** |
43 | * GTK_MAJOR_VERSION: |
44 | * |
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. |
48 | */ |
49 | #define GTK_MAJOR_VERSION (3) |
50 | |
51 | /** |
52 | * GTK_MINOR_VERSION: |
53 | * |
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. |
57 | */ |
58 | #define GTK_MINOR_VERSION (24) |
59 | |
60 | /** |
61 | * GTK_MICRO_VERSION: |
62 | * |
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. |
66 | */ |
67 | #define GTK_MICRO_VERSION (5) |
68 | |
69 | /** |
70 | * GTK_BINARY_AGE: |
71 | * |
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. |
75 | */ |
76 | #define GTK_BINARY_AGE (2405) |
77 | |
78 | /** |
79 | * GTK_INTERFACE_AGE: |
80 | * |
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. |
84 | */ |
85 | #define GTK_INTERFACE_AGE (1) |
86 | |
87 | /** |
88 | * GTK_CHECK_VERSION: |
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) |
92 | * |
93 | * Returns %TRUE if the version of the GTK+ header files |
94 | * is the same as or newer than the passed-in version. |
95 | * |
96 | * Returns: %TRUE if GTK+ headers are new enough |
97 | */ |
98 | #define GTK_CHECK_VERSION(major,minor,micro) \ |
99 | (GTK_MAJOR_VERSION > (major) || \ |
100 | (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION > (minor)) || \ |
101 | (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION == (minor) && \ |
102 | GTK_MICRO_VERSION >= (micro))) |
103 | |
104 | #endif /* __GTK_VERSION_H__ */ |
105 | |