]> www.fi.muni.cz Git - evince.git/blob - libdocument/ev-version.h.in
[libcodument] Add helper methods to get destination page of a link
[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  * 59 Temple Place, Suite 330, Boston, MA 02110-1301  USA
17  */
18
19 #ifndef EV_VERSION_H
20 #define EV_VERSION_H
21
22 #define EV_MAJOR_VERSION (@EV_MAJOR_VERSION@)
23 #define EV_MINOR_VERSION (@EV_MINOR_VERSION@)
24 #define EV_MICRO_VERSION (@EV_MICRO_VERSION@)
25
26 #define EV_CHECK_VERSION(major,minor,micro) \
27   (EV_MAJOR_VERSION > (major) || \
28    (EV_MAJOR_VERSION == (major) && EV_MINOR_VERSION > (minor)) || \
29    (EV_MAJOR_VERSION == (major) && EV_MINOR_VERSION == (minor) && EV_MICRO_VERSION >= (micro)))
30
31 #endif /* #ifndef EV_VERSION_H */