From 21964348bc5c1bb2280a79c7458eaa0d6b782680 Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Mon, 19 Feb 2018 16:44:09 +0100 Subject: [PATCH] bindings/python: include config.h before any other header file --- bindings/python/sigrok/core/classes.i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/sigrok/core/classes.i b/bindings/python/sigrok/core/classes.i index 2afd9cf1..69c05a30 100644 --- a/bindings/python/sigrok/core/classes.i +++ b/bindings/python/sigrok/core/classes.i @@ -45,6 +45,8 @@ which provides access to the error code and description." %module(docstring=DOCSTRING) classes %{ +#include "config.h" + #include #include #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