bindings/cxx: include config.h as early as possible

Move the inclusion of <config.h> before any other source code.
This commit is contained in:
Gerhard Sittig 2018-02-19 16:42:18 +01:00 committed by Uwe Hermann
parent dea7f6342a
commit 1e95832b3e
1 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,5 @@
#include <config.h>
const DataType *ConfigKey::data_type() const const DataType *ConfigKey::data_type() const
{ {
const struct sr_key_info *info = sr_key_info_get(SR_KEY_CONFIG, id()); const struct sr_key_info *info = sr_key_info_get(SR_KEY_CONFIG, id());
@ -30,8 +32,6 @@ const ConfigKey *ConfigKey::get_by_identifier(string identifier)
return get(info->key); return get(info->key);
} }
#include <config.h>
#ifndef HAVE_STOI_STOD #ifndef HAVE_STOI_STOD
/* Fallback implementation of stoi and stod */ /* Fallback implementation of stoi and stod */