Modify copying information
[platform/upstream/ibus.git] / src / ibusversion.h.in
1 /* vim:set et sts=4: */
2 /* ibus - The Input Bus
3  * Copyright (C) 2008-2009 Peng Huang <shawn.p.huang@gmail.com>
4  * Copyright (C) 2008-2009 Red Hat, Inc.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 #ifndef __IBUS_VERSION_H_
22 #define __IBUS_VERSION_H_
23
24 /* compile time version
25  */
26 #define IBUS_MAJOR_VERSION                              (@PACKAGE_VERSION_MAJOR@)
27 #define IBUS_MINOR_VERSION                              (@PACKAGE_VERSION_MINOR@)
28 #define IBUS_MICRO_VERSION                              (@PACKAGE_VERSION_MICRO@)
29
30 /* check whether a Gtk+ version equal to or greater than
31  * major.minor.micro is present.
32  */
33 #define IBUS_CHECK_VERSION(major,minor,micro)   \
34     (IBUS_MAJOR_VERSION > (major) || \
35      (IBUS_MAJOR_VERSION == (major) && IBUS_MINOR_VERSION > (minor)) || \
36      (IBUS_MAJOR_VERSION == (major) && IBUS_MINOR_VERSION == (minor) && \
37       IBUS_MICRO_VERSION >= (micro)))
38
39 #endif
40