1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2000-2012 Jeffrey Stedfast
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public License
7 * as published by the Free Software Foundation; either version 2.1
8 * of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free
17 * Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
22 #ifndef __GMIME_VERSION_H__
23 #define __GMIME_VERSION_H__
26 * GMIME_MAJOR_VERSION:
28 * GMime's major version.
30 #define GMIME_MAJOR_VERSION (@GMIME_MAJOR_VERSION@)
33 * GMIME_MINOR_VERSION:
35 * GMime's minor version.
37 #define GMIME_MINOR_VERSION (@GMIME_MINOR_VERSION@)
40 * GMIME_MICRO_VERSION:
42 * GMime's micro version.
44 #define GMIME_MICRO_VERSION (@GMIME_MICRO_VERSION@)
51 #define GMIME_BINARY_AGE (@GMIME_BINARY_AGE@)
54 * GMIME_INTERFACE_AGE:
56 * GMime's interface age.
58 #define GMIME_INTERFACE_AGE (@GMIME_INTERFACE_AGE@)
62 * GMIME_CHECK_VERSION:
63 * @major: Minimum major version
64 * @minor: Minimum minor version
65 * @micro: Minimum micro version
67 * Check whether a GMime version equal to or greater than
68 * @major.@minor.@micro is present.
70 #define GMIME_CHECK_VERSION(major,minor,micro) \
71 (GMIME_MAJOR_VERSION > (major) || \
72 (GMIME_MAJOR_VERSION == (major) && GMIME_MINOR_VERSION > (minor)) || \
73 (GMIME_MAJOR_VERSION == (major) && GMIME_MINOR_VERSION == (minor) && \
74 GMIME_MICRO_VERSION >= (micro)))
76 #endif /* __GMIME_VERSION_H__ */