From 367843620d039ad183bc4d7c33d91c316d717621 Mon Sep 17 00:00:00 2001 From: Daniel Elstner Date: Sun, 13 Sep 2015 22:07:11 +0200 Subject: Build: Include first in all source files Since Autoconf places some important feature flags only into the configuration header, it is necessary to include it globally to guarantee a consistent build. --- decoder.c | 2 +- error.c | 1 + exception.c | 2 +- instance.c | 2 +- log.c | 1 + module_sigrokdecode.c | 2 +- session.c | 2 +- srd.c | 2 +- tests/core.c | 1 + tests/decoder.c | 1 + tests/inst.c | 1 + tests/main.c | 1 + tests/session.c | 1 + type_decoder.c | 2 +- type_logic.c | 2 +- util.c | 2 +- version.c | 1 + 17 files changed, 17 insertions(+), 9 deletions(-) diff --git a/decoder.c b/decoder.c index c494413..753a88a 100644 --- a/decoder.c +++ b/decoder.c @@ -18,7 +18,7 @@ * along with this program. If not, see . */ -#include "config.h" +#include #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" #include diff --git a/error.c b/error.c index e6abd4b..f31f196 100644 --- a/error.c +++ b/error.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include "libsigrokdecode.h" /** diff --git a/exception.c b/exception.c index 96546f7..8810304 100644 --- a/exception.c +++ b/exception.c @@ -17,9 +17,9 @@ * along with this program. If not, see . */ +#include #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" -#include "config.h" #include #include #include /* Python header not pulled in by default. */ diff --git a/instance.c b/instance.c index 3fa3e5d..4eca3f5 100644 --- a/instance.c +++ b/instance.c @@ -18,9 +18,9 @@ * along with this program. If not, see . */ +#include #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" -#include "config.h" #include #include #include diff --git a/log.c b/log.c index f2ef818..73c1fdd 100644 --- a/log.c +++ b/log.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" #include diff --git a/module_sigrokdecode.c b/module_sigrokdecode.c index 7f7e869..468a1cb 100644 --- a/module_sigrokdecode.c +++ b/module_sigrokdecode.c @@ -17,9 +17,9 @@ * along with this program. If not, see . */ +#include #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" -#include "config.h" /** @cond PRIVATE */ diff --git a/session.c b/session.c index 703c7ea..7673fee 100644 --- a/session.c +++ b/session.c @@ -18,9 +18,9 @@ * along with this program. If not, see . */ +#include #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" -#include "config.h" #include #include diff --git a/srd.c b/srd.c index 68cfe0a..ae1c773 100644 --- a/srd.c +++ b/srd.c @@ -18,9 +18,9 @@ * along with this program. If not, see . */ +#include #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" -#include "config.h" #include /** @cond PRIVATE */ diff --git a/tests/core.c b/tests/core.c index 3b3d022..3b26a2e 100644 --- a/tests/core.c +++ b/tests/core.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include "../libsigrokdecode.h" /* First, to avoid compiler warning. */ #include #include diff --git a/tests/decoder.c b/tests/decoder.c index 726e17c..97d5767 100644 --- a/tests/decoder.c +++ b/tests/decoder.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include "../libsigrokdecode.h" /* First, to avoid compiler warning. */ #include #include diff --git a/tests/inst.c b/tests/inst.c index fe7e1f9..8d30b12 100644 --- a/tests/inst.c +++ b/tests/inst.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include "../libsigrokdecode.h" /* First, to avoid compiler warning. */ #include #include diff --git a/tests/main.c b/tests/main.c index 96b6f43..19c459d 100644 --- a/tests/main.c +++ b/tests/main.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include "../libsigrokdecode.h" /* First, to avoid compiler warning. */ #include #include diff --git a/tests/session.c b/tests/session.c index 2ca16b3..431ab5e 100644 --- a/tests/session.c +++ b/tests/session.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include "../libsigrokdecode-internal.h" /* First, to avoid compiler warning. */ #include "../libsigrokdecode.h" #include diff --git a/type_decoder.c b/type_decoder.c index 7abdac1..d4c592f 100644 --- a/type_decoder.c +++ b/type_decoder.c @@ -17,9 +17,9 @@ * along with this program. If not, see . */ +#include #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" -#include "config.h" #include typedef struct { diff --git a/type_logic.c b/type_logic.c index a33d997..0b11339 100644 --- a/type_logic.c +++ b/type_logic.c @@ -17,9 +17,9 @@ * along with this program. If not, see . */ +#include #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" -#include "config.h" #include #include diff --git a/util.c b/util.c index 764474b..be14041 100644 --- a/util.c +++ b/util.c @@ -18,9 +18,9 @@ * along with this program. If not, see . */ +#include #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" -#include "config.h" /** * Get the value of a Python object's attribute, returned as a newly diff --git a/version.c b/version.c index 8fbbafa..699b3f5 100644 --- a/version.c +++ b/version.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include "libsigrokdecode.h" /** -- cgit v1.2.3-70-g09d2