]> sigrok.org Git - libsigrok.git/commitdiff
bindings/python: include config.h before any other header file
authorGerhard Sittig <redacted>
Mon, 19 Feb 2018 15:44:09 +0000 (16:44 +0100)
committerUwe Hermann <redacted>
Wed, 21 Feb 2018 10:19:17 +0000 (11:19 +0100)
bindings/python/sigrok/core/classes.i

index 2afd9cf131ed6ae7f7977dce357ae881fa4b9a66..69c05a30b808317aa0f11b849c0fbb94bbff9f81 100644 (file)
@@ -45,6 +45,8 @@ which provides access to the error code and description."
 %module(docstring=DOCSTRING) classes
 
 %{
+#include "config.h"
+
 #include <stdio.h>
 #include <pygobject.h>
 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
@@ -53,8 +55,6 @@ which provides access to the error code and description."
 PyObject *PyGObject_lib;
 PyObject *GLib;
 
-#include "config.h"
-
 #if PYGOBJECT_FLAGS_SIGNED
 typedef gint pyg_flags_type;
 #else