Radek Krejci | 2c22f12 | 2018-09-05 15:08:03 +0200 | [diff] [blame] | 1 | /** |
| 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 | |
Radek Krejci | 1b5ef9d | 2018-11-27 12:49:59 +0100 | [diff] [blame] | 18 | #cmakedefine APPLE |
| 19 | |
Radek Krejci | a9dc4ab | 2019-05-16 11:13:17 +0200 | [diff] [blame] | 20 | #cmakedefine HAVE_GET_CURRENT_DIR_NAME |
| 21 | |
Radek Krejci | 665489b | 2019-04-18 15:07:58 +0200 | [diff] [blame] | 22 | #cmakedefine HAVE_VDPRINTF |
| 23 | |
Radek Krejci | e7b9509 | 2019-05-15 11:03:07 +0200 | [diff] [blame] | 24 | #cmakedefine HAVE_STRNSTR |
| 25 | |
Radek Krejci | 2c22f12 | 2018-09-05 15:08:03 +0200 | [diff] [blame] | 26 | /** |
| 27 | * @brief Compiler flag for unused function attributes |
| 28 | */ |
| 29 | #define UNUSED(x) @COMPILER_UNUSED_ATTR@ |
| 30 | |
| 31 | /** |
| 32 | * @brief Compiler flag for packed data types. |
| 33 | */ |
| 34 | #define _PACKED @COMPILER_PACKED_ATTR@ |
| 35 | |
Radek Krejci | a43d69d | 2019-04-04 10:34:46 +0200 | [diff] [blame] | 36 | #define LY_VERSION_MAJOR @LIBYANG_MAJOR_SOVERSION@ /**< libyang major version number */ |
| 37 | #define LY_VERSION_MINOR @LIBYANG_MINOR_SOVERSION@ /**< libyang minor version number */ |
| 38 | #define LY_VERSION_MICRO @LIBYANG_MICRO_SOVERSION@ /**< libyang micro version number */ |
| 39 | #define LY_VERSION "@LIBYANG_SOVERSION_FULL@" /**< libyang version string */ |
Radek Krejci | 2c22f12 | 2018-09-05 15:08:03 +0200 | [diff] [blame] | 40 | |
| 41 | #endif /* LY_CONFIG_H_ */ |