]> www.fi.muni.cz Git - evince.git/blob - libdocument/ev-version.h.in
[dualscreen] fix crash on ctrl+w and fix control window closing
[evince.git] / libdocument / ev-version.h.in
1 /*
2  * Copyright © 2009 Christian Persch
3  *
4  * This library is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License as published by the
6  * Free Software Foundation; either version 2.1 of the License, or (at your
7  * option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful, but
10  * 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 License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  */
18
19 #ifndef EV_VERSION_H
20 #define EV_VERSION_H
21
22 /**
23  * SECTION:ev-version
24  * @short_description: Library version checks
25  *
26  * These macros enable compile time checks of the library version.
27  */
28
29 /**
30  * EV_MAJOR_VERSION:
31  *
32  * The major version number of the EV library
33  * (e.g. in version 3.1.4 this is 3).
34  */
35
36 #define EV_MAJOR_VERSION (@EV_MAJOR_VERSION@)
37
38 /**
39  * EV_MINOR_VERSION:
40  *
41  * The minor version number of the EV library
42  * (e.g. in version 3.1.4 this is 1).
43  */
44 #define EV_MINOR_VERSION (@EV_MINOR_VERSION@)
45
46 /**
47  * EV_MICRO_VERSION:
48  *
49  * The micro version number of the EV library
50  * (e.g. in version 3.1.4 this is 4).
51  */
52 #define EV_MICRO_VERSION (@EV_MICRO_VERSION@)
53
54 /**
55  * EV_CHECK_VERSION:
56  * @major: required major version
57  * @minor: required minor version
58  * @micro: required micro version
59  *
60  * Macro to check the library version at compile time.
61  * It returns <literal>1</literal> if the version of EV is greater or
62  * equal to the required one, and <literal>0</literal> otherwise.
63  */
64 #define EV_CHECK_VERSION(major,minor,micro) \
65   (EV_MAJOR_VERSION > (major) || \
66    (EV_MAJOR_VERSION == (major) && EV_MINOR_VERSION > (minor)) || \
67    (EV_MAJOR_VERSION == (major) && EV_MINOR_VERSION == (minor) && EV_MICRO_VERSION >= (micro)))
68
69 #endif /* #ifndef EV_VERSION_H */