support for libconfig 1.4.9. Fix #275

This commit is contained in:
yrutschle 2020-08-11 17:37:23 +02:00
parent 5cdff8c558
commit 8b6e06e6c7
3 changed files with 18 additions and 2 deletions

View File

@ -1,3 +1,7 @@
vNEXT:
Added symbol to support libconfig 1.4.9, still in
use in CentOS7.
v1.21: 11JUL2020
WARNING:
Moved configuration and command-line management to

View File

@ -1,5 +1,5 @@
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
* on Tue Aug 4 16:36:09 2020.
* on Tue Aug 11 17:35:54 2020.
# conf2struct: generate libconf parsers that read to structs
# Copyright (C) 2018-2019 Yves Rutschle
@ -48,6 +48,18 @@
/* This gets included in the output .c file */
/* Libconfig 1.4.9 is still used by major distributions
* (e.g. CentOS7) and had a different name for
* config_setting_lookup */
#if LIBCONFIG_VER_MAJOR == 1
#if LIBCONFIG_VER_MINOR == 4
#if LIBCONFIG_VER_REVISION == 9
#define config_setting_lookup config_lookup_from
#endif
#endif
#endif
/* config_type, lookup_fns, type2str are related, keep them together */
typedef enum {
CFG_BOOL,

View File

@ -1,5 +1,5 @@
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
* on Wed Jul 29 22:51:16 2020.
* on Tue Aug 11 17:35:54 2020.
# conf2struct: generate libconf parsers that read to structs
# Copyright (C) 2018-2019 Yves Rutschle