diff options
author | 2019-01-04 15:22:27 +0100 | |
---|---|---|
committer | 2019-01-04 16:54:52 +0100 | |
commit | 48d4b06fc2b24aa9f31e418247a712665d45347c (patch) | |
tree | 839609f3c5df7a911bb086317a63978f21652f71 /include | |
parent | 138e2fe9718c1db4302848bef4030687f4fe1191 (diff) |
Avoid relative path when including headers
Prefer the system path to include headers.
Change-Id: Id20d7c07b628bb8da25abeef3bc10456693a93f9
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'include')
-rw-r--r-- | include/afb/afb-binding | 5 | ||||
-rw-r--r-- | include/afb/c++/binding | 5 | ||||
-rw-r--r-- | include/afb/c++/binding-object.hpp | 4 | ||||
-rw-r--r-- | include/afb/c++/binding-wrap.hpp | 2 |
4 files changed, 9 insertions, 7 deletions
diff --git a/include/afb/afb-binding b/include/afb/afb-binding index 46e671d2..364252c3 100644 --- a/include/afb/afb-binding +++ b/include/afb/afb-binding @@ -15,6 +15,5 @@ * limitations under the License. */ #pragma once -#include "c++/binding-wrap.hpp" -#include "c++/binding-object.hpp" - +#include <afb/c++/binding-wrap.hpp> +#include <afb/c++/binding-object.hpp> diff --git a/include/afb/c++/binding b/include/afb/c++/binding index 5858dff7..0cce021b 100644 --- a/include/afb/c++/binding +++ b/include/afb/c++/binding @@ -15,5 +15,6 @@ * limitations under the License. */ #pragma once -#include "binding-wrap.hpp" -#include "binding-object.hpp" +#include <afb/c++/binding-wrap.hpp> +#include <afb/c++/binding-object.hpp> + diff --git a/include/afb/c++/binding-object.hpp b/include/afb/c++/binding-object.hpp index 9a9e5b6e..65341362 100644 --- a/include/afb/c++/binding-object.hpp +++ b/include/afb/c++/binding-object.hpp @@ -17,7 +17,9 @@ * limitations under the License. */ -#include "../afb-binding.h" +extern "C" { +#include <afb/afb-binding.h> +} #include <cassert> #include <string> diff --git a/include/afb/c++/binding-wrap.hpp b/include/afb/c++/binding-wrap.hpp index 21847722..f3747dde 100644 --- a/include/afb/c++/binding-wrap.hpp +++ b/include/afb/c++/binding-wrap.hpp @@ -34,7 +34,7 @@ /* get C definitions of bindings */ extern "C" { -#include "afb-binding.h" +#include <afb/afb-binding.h> } namespace afb { |