From 40547d22025f69fdefe35042a5babe8c04b6aa2a Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Sat, 13 May 2017 18:54:01 -0400 Subject: [PATCH] Include before anything else MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This makes sure that headers which would need this to be included see what it defines. Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- lib/ctf-ir/attributes.c | 2 +- lib/ctf-ir/clock-class.c | 2 +- lib/ref.c | 2 +- lib/values.c | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/ctf-ir/attributes.c b/lib/ctf-ir/attributes.c index 2cd3a4bf..9e605690 100644 --- a/lib/ctf-ir/attributes.c +++ b/lib/ctf-ir/attributes.c @@ -26,11 +26,11 @@ */ #define BT_LOG_TAG "ATTRS" +#include #include #include #include -#include #define BT_CTF_ATTR_NAME_INDEX 0 #define BT_CTF_ATTR_VALUE_INDEX 1 diff --git a/lib/ctf-ir/clock-class.c b/lib/ctf-ir/clock-class.c index 4335d3b0..345b7b16 100644 --- a/lib/ctf-ir/clock-class.c +++ b/lib/ctf-ir/clock-class.c @@ -27,6 +27,7 @@ */ #define BT_LOG_TAG "CLOCK-CLASS" +#include #include #include @@ -34,7 +35,6 @@ #include #include #include -#include #include static diff --git a/lib/ref.c b/lib/ref.c index bcef44f1..d39a24d0 100644 --- a/lib/ref.c +++ b/lib/ref.c @@ -25,8 +25,8 @@ */ #define BT_LOG_TAG "REF" - #include + #include #include diff --git a/lib/values.c b/lib/values.c index 7497aea8..49b23caf 100644 --- a/lib/values.c +++ b/lib/values.c @@ -26,6 +26,7 @@ */ #define BT_LOG_TAG "VALUES" +#include #include #include @@ -37,8 +38,6 @@ #include #include #include - -#include #include #define BT_VALUE_FROM_CONCRETE(_concrete) ((struct bt_value *) (_concrete)) -- 2.34.1