aboutsummaryrefslogtreecommitdiff
path: root/src/libslirp-version.h.in
blob: faa6c85952fb1f0d53dc9f70dfbca227bda7fd5e (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
/* SPDX-License-Identifier: BSD-3-Clause */
#ifndef LIBSLIRP_VERSION_H_
#define LIBSLIRP_VERSION_H_

#ifdef __cplusplus
extern "C" {
#endif

#define SLIRP_MAJOR_VERSION @SLIRP_MAJOR_VERSION@
#define SLIRP_MINOR_VERSION @SLIRP_MINOR_VERSION@
#define SLIRP_MICRO_VERSION @SLIRP_MICRO_VERSION@
#define SLIRP_VERSION_STRING @SLIRP_VERSION_STRING@

#define SLIRP_CHECK_VERSION(major,minor,micro)                          \
    (SLIRP_MAJOR_VERSION > (major) ||                                   \
     (SLIRP_MAJOR_VERSION == (major) && SLIRP_MINOR_VERSION > (minor)) || \
     (SLIRP_MAJOR_VERSION == (major) && SLIRP_MINOR_VERSION == (minor) && \
      SLIRP_MICRO_VERSION >= (micro)))

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /* LIBSLIRP_VERSION_H_ */