From: Gerhard Sittig Date: Mon, 19 Feb 2018 15:42:18 +0000 (+0100) Subject: bindings/cxx: include config.h as early as possible X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1e95832b3e17f7dc5f48046ec9cf6e03a96a1779;p=libsigrok.git bindings/cxx: include config.h as early as possible Move the inclusion of before any other source code. --- diff --git a/bindings/cxx/ConfigKey_methods.cpp b/bindings/cxx/ConfigKey_methods.cpp index be70b06d..ee0a74eb 100644 --- a/bindings/cxx/ConfigKey_methods.cpp +++ b/bindings/cxx/ConfigKey_methods.cpp @@ -1,3 +1,5 @@ +#include + const DataType *ConfigKey::data_type() const { 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); } -#include - #ifndef HAVE_STOI_STOD /* Fallback implementation of stoi and stod */