]> sigrok.org Git - libsigrok.git/commitdiff
bindings/cxx: include config.h as early as possible
authorGerhard Sittig <redacted>
Mon, 19 Feb 2018 15:42:18 +0000 (16:42 +0100)
committerUwe Hermann <redacted>
Wed, 21 Feb 2018 10:19:17 +0000 (11:19 +0100)
Move the inclusion of <config.h> before any other source code.

bindings/cxx/ConfigKey_methods.cpp

index be70b06df0e8380cab8aa5209fb554553afcd11e..ee0a74ebd820091198eb1ec72ccd8808b5a90179 100644 (file)
@@ -1,3 +1,5 @@
+#include <config.h>
+
 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 <config.h>
-
 #ifndef HAVE_STOI_STOD
 
 /* Fallback implementation of stoi and stod */