1/*
2 * This file is part of libbdplus
3 * Copyright (C) 2013 VideoLAN
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
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.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see
17 * <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef BDPLUS_VERSION_H_
21#define BDPLUS_VERSION_H_
22
23#define BDPLUS_VERSION_CODE(major, minor, micro) \
24    (((major) * 10000) +                         \
25     ((minor) *   100) +                         \
26     ((micro) *     1))
27
28#define BDPLUS_VERSION_MAJOR @BDPLUS_VERSION_MAJOR@
29#define BDPLUS_VERSION_MINOR @BDPLUS_VERSION_MINOR@
30#define BDPLUS_VERSION_MICRO @BDPLUS_VERSION_MICRO@
31
32#define BDPLUS_VERSION_STRING "@BDPLUS_VERSION_MAJOR@.@BDPLUS_VERSION_MINOR@.@BDPLUS_VERSION_MICRO@"
33
34#define BDPLUS_VERSION \
35    BDPLUS_VERSION_CODE(BDPLUS_VERSION_MAJOR, BDPLUS_VERSION_MINOR, BDPLUS_VERSION_MICRO)
36
37#endif /* BDPLUS_VERSION_H_ */
38