blob: 83fa2f54032df08be94de226c21e727bf35f62d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/*======================================================================
FILE: icalversion.h
CREATOR: eric 20 March 1999
(C) COPYRIGHT 2000, Eric Busboom <eric@civicknowledge.com>
This library is free software; you can redistribute it and/or modify
it under the terms of either:
The LGPL as published by the Free Software Foundation, version
2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html
Or:
The Mozilla Public License Version 2.0. You may obtain a copy of
the License at https://www.mozilla.org/MPL/
======================================================================*/
#ifndef ICAL_VERSION_H
#define ICAL_VERSION_H
#define ICAL_PACKAGE "@CMAKE_PROJECT_NAME@"
#define ICAL_VERSION "@PROJECT_VERSION@"
#define ICAL_MAJOR_VERSION (@LIBICAL_LIB_MAJOR_VERSION@)
#define ICAL_MINOR_VERSION (@LIBICAL_LIB_MINOR_VERSION@)
#define ICAL_PATCH_VERSION (@LIBICAL_LIB_PATCH_VERSION@)
#define ICAL_MICRO_VERSION ICAL_PATCH_VERSION
/**
* ICAL_CHECK_VERSION:
* @param major: major version (e.g. 1 for version 1.2.5)
* @param minor: minor version (e.g. 2 for version 1.2.5)
* @param micro: micro version (e.g. 5 for version 1.2.5)
*
* @return TRUE if the version of the LIBICAL header files
* is the same as or newer than the passed-in version.
*/
#define ICAL_CHECK_VERSION(major,minor,micro) \
(ICAL_MAJOR_VERSION > (major) || \
(ICAL_MAJOR_VERSION == (major) && ICAL_MINOR_VERSION > (minor)) || \
(ICAL_MAJOR_VERSION == (major) && ICAL_MINOR_VERSION == (minor) && \
ICAL_MICRO_VERSION >= (micro)))
#endif
|