1
/* GNet - Networking library
2
* Copyright (C) 2000 David Helder
3
* Copyright (C) 2000 Andrew Lanoix
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Library General Public
7
* License as published by the Free Software Foundation; either
8
* version 2 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
* Library General Public License for more details.
15
* You should have received a copy of the GNU Library General Public
16
* License along with this library; if not, write to the
17
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
* Boston, MA 02111-1307, USA.
27
#include "iochannel.h"
33
#endif /* __cplusplus */
36
# define GNET_EXPORT extern __declspec(dllimport)
38
# define GNET_EXPORT extern
41
GNET_EXPORT const guint gnet_major_version;
42
GNET_EXPORT const guint gnet_minor_version;
43
GNET_EXPORT const guint gnet_micro_version;
44
GNET_EXPORT const guint gnet_interface_age;
45
GNET_EXPORT const guint gnet_binary_age;
49
* @major: Major version number
50
* @minor: Minor version number
51
* @micro: Micro version number
53
* Check if the version given is compatable with this version of the
54
* library. For example, GNET_CHECK_VERSION(1.2.3) would return TRUE
55
* if the version is 1.2.5, and FALSE if 1.1.0.
58
#define GNET_CHECK_VERSION(major,minor,micro) \
59
(GNET_MAJOR_VERSION > (major) || \
60
(GNET_MAJOR_VERSION == (major) && GNET_MINOR_VERSION > (minor)) || \
61
(GNET_MAJOR_VERSION == (major) && GNET_MINOR_VERSION == (minor) && \
62
GNET_MICRO_VERSION >= (micro)))
68
#endif /* __cplusplus */