blob: 2a2af239a2a9fdadbec49c48bd1327a70e03d0b1 [file] [log] [blame]
Radek Krejci2c22f122018-09-05 15:08:03 +02001/**
2 * @file config.h
3 * @author Radek Krejci <rkrejci@cesnet.cz>
4 * @brief various variables detected by cmake
5 *
6 * Copyright (c) 2015 - 2018 CESNET, z.s.p.o.
7 *
8 * This source code is licensed under BSD 3-Clause License (the "License").
9 * You may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * https://opensource.org/licenses/BSD-3-Clause
13 */
14
15#ifndef LY_CONFIG_H_
16#define LY_CONFIG_H_
17
18/**
19 * @brief Compiler flag for unused function attributes
20 */
21#define UNUSED(x) @COMPILER_UNUSED_ATTR@
22
23/**
24 * @brief Compiler flag for packed data types.
25 */
26#define _PACKED @COMPILER_PACKED_ATTR@
27
28#define LY_VERSION_MAJOR @LIBYANG_MAJOR_VERSION@ /**< libyang major version number */
29#define LY_VERSION_MINOR @LIBYANG_MINOR_VERSION@ /**< libyang minor version number */
30#define LY_VERSION_MICRO @LIBYANG_MICRO_VERSION@ /**< libyang micro version number */
31
32#endif /* LY_CONFIG_H_ */