From: Loïc Collignon Date: Fri, 4 Jan 2019 14:22:27 +0000 (+0100) Subject: c++: Avoid relative path when including headers X-Git-Tag: 7.99.1~46 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=commitdiff_plain;h=502927c390598c842e7306ce1879a727125c3557 c++: Avoid relative path when including headers Prefer the system path to include headers. Change-Id: I08a64e8d27808084ea4592988f36b7e5099a7fc6 Signed-off-by: Loïc Collignon --- diff --git a/include/afb/afb-binding b/include/afb/afb-binding index a961a408..a76653a1 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 +#include diff --git a/include/afb/c++/binding b/include/afb/c++/binding index 5858dff7..364252c3 100644 --- a/include/afb/c++/binding +++ b/include/afb/c++/binding @@ -15,5 +15,5 @@ * limitations under the License. */ #pragma once -#include "binding-wrap.hpp" -#include "binding-object.hpp" +#include +#include diff --git a/include/afb/c++/binding-object.hpp b/include/afb/c++/binding-object.hpp index f9c3bcab..b85331cd 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 +} #include #include diff --git a/include/afb/c++/binding-wrap.hpp b/include/afb/c++/binding-wrap.hpp index 0cb64423..deba2c8e 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 } namespace afb {