libsir 2.2.5
Standard Incident Reporter
Loading...
Searching...
No Matches
version.h
1/*
2 * version.h
3 *
4 * Version: 2.2.5
5 *
6 * -----------------------------------------------------------------------------
7 *
8 * SPDX-License-Identifier: MIT
9 *
10 * Copyright (c) 2018-2024 Ryan M. Lederman <lederman@gmail.com>
11 * Copyright (c) 2018-2024 Jeffrey H. Johnson <trnsz@pobox.com>
12 *
13 * Permission is hereby granted, free of charge, to any person obtaining a copy of
14 * this software and associated documentation files (the "Software"), to deal in
15 * the Software without restriction, including without limitation the rights to
16 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
17 * the Software, and to permit persons to whom the Software is furnished to do so,
18 * subject to the following conditions:
19 *
20 * The above copyright notice and this permission notice shall be included in all
21 * copies or substantial portions of the Software.
22 *
23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
25 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
26 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
27 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
28 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 *
30 * -----------------------------------------------------------------------------
31 */
32
33#ifndef _SIR_VERSION_H_INCLUDED
34# define _SIR_VERSION_H_INCLUDED
35
36# include <stdint.h>
37
39# define SIR_VERSION_MAJOR 2
40
42# define SIR_VERSION_MINOR 2
43
45# define SIR_VERSION_PATCH 5
46
48# define SIR_VERSION_IS_RELEASE 0
49
51# define SIR_VERSION_SUFFIX "-dev"
52
54# define SIR_VERSION_HEX ((SIR_VERSION_MAJOR << 16) | \
55 (SIR_VERSION_MINOR << 8) | \
56 (SIR_VERSION_PATCH))
57
58# define _SIR_VER2STR(x) #x
59# define _SIR_MK_VER_STR(maj, min, patch) \
60 _SIR_VER2STR(maj) "." _SIR_VER2STR(min) "." _SIR_VER2STR(patch) SIR_VERSION_SUFFIX
61
62#endif /* !_SIR_VERSION_H_INCLUDED */