aboutsummaryrefslogtreecommitdiffstats
path: root/include/afb/c++
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2019-01-04 15:22:27 +0100
committerLoïc Collignon <loic.collignon@iot.bzh>2019-03-11 13:31:52 +0100
commit502927c390598c842e7306ce1879a727125c3557 (patch)
tree8296a136f33d23b8b2f82a067d6e6af981fc233c /include/afb/c++
parentcf1917f00d28381023d2e30f767adc5872b21084 (diff)
c++: Avoid relative path when including headers
Prefer the system path to include headers. Change-Id: I08a64e8d27808084ea4592988f36b7e5099a7fc6 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'include/afb/c++')
-rw-r--r--include/afb/c++/binding4
-rw-r--r--include/afb/c++/binding-object.hpp4
-rw-r--r--include/afb/c++/binding-wrap.hpp2
3 files changed, 6 insertions, 4 deletions
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 <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 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 <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 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 <afb/afb-binding.h>
}
namespace afb {