diff options
author | Daniel Elstner <daniel.kitta@gmail.com> | 2015-09-13 22:07:11 +0200 |
---|---|---|
committer | Daniel Elstner <daniel.kitta@gmail.com> | 2015-09-13 22:07:11 +0200 |
commit | 367843620d039ad183bc4d7c33d91c316d717621 (patch) | |
tree | c2deb210b2f59905493a6a4cc9a4f7e87331354c | |
parent | 4916b17368e8ed06f4bfd045052ab0f891c33954 (diff) | |
download | libsigrokdecode-367843620d039ad183bc4d7c33d91c316d717621.tar.gz libsigrokdecode-367843620d039ad183bc4d7c33d91c316d717621.zip |
Build: Include <config.h> 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.
-rw-r--r-- | decoder.c | 2 | ||||
-rw-r--r-- | error.c | 1 | ||||
-rw-r--r-- | exception.c | 2 | ||||
-rw-r--r-- | instance.c | 2 | ||||
-rw-r--r-- | log.c | 1 | ||||
-rw-r--r-- | module_sigrokdecode.c | 2 | ||||
-rw-r--r-- | session.c | 2 | ||||
-rw-r--r-- | srd.c | 2 | ||||
-rw-r--r-- | tests/core.c | 1 | ||||
-rw-r--r-- | tests/decoder.c | 1 | ||||
-rw-r--r-- | tests/inst.c | 1 | ||||
-rw-r--r-- | tests/main.c | 1 | ||||
-rw-r--r-- | tests/session.c | 1 | ||||
-rw-r--r-- | type_decoder.c | 2 | ||||
-rw-r--r-- | type_logic.c | 2 | ||||
-rw-r--r-- | util.c | 2 | ||||
-rw-r--r-- | version.c | 1 |
17 files changed, 17 insertions, 9 deletions
@@ -18,7 +18,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "config.h" +#include <config.h> #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" #include <glib.h> @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include <config.h> #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 <http://www.gnu.org/licenses/>. */ +#include <config.h> #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" -#include "config.h" #include <stdarg.h> #include <glib.h> #include <frameobject.h> /* Python header not pulled in by default. */ @@ -18,9 +18,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <config.h> #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" -#include "config.h" #include <glib.h> #include <inttypes.h> #include <stdlib.h> @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include <config.h> #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" #include <stdarg.h> 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 <http://www.gnu.org/licenses/>. */ +#include <config.h> #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" -#include "config.h" /** @cond PRIVATE */ @@ -18,9 +18,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <config.h> #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" -#include "config.h" #include <inttypes.h> #include <glib.h> @@ -18,9 +18,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <config.h> #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" -#include "config.h" #include <glib.h> /** @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 <config.h> #include "../libsigrokdecode.h" /* First, to avoid compiler warning. */ #include <stdlib.h> #include <check.h> 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 <config.h> #include "../libsigrokdecode.h" /* First, to avoid compiler warning. */ #include <stdlib.h> #include <check.h> 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 <config.h> #include "../libsigrokdecode.h" /* First, to avoid compiler warning. */ #include <stdlib.h> #include <check.h> 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 <config.h> #include "../libsigrokdecode.h" /* First, to avoid compiler warning. */ #include <stdlib.h> #include <check.h> 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 <config.h> #include "../libsigrokdecode-internal.h" /* First, to avoid compiler warning. */ #include "../libsigrokdecode.h" #include <stdint.h> 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 <http://www.gnu.org/licenses/>. */ +#include <config.h> #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" -#include "config.h" #include <inttypes.h> 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 <http://www.gnu.org/licenses/>. */ +#include <config.h> #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include "libsigrokdecode.h" -#include "config.h" #include <inttypes.h> #include <string.h> @@ -18,9 +18,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <config.h> #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 @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include <config.h> #include "libsigrokdecode.h" /** |