c++: Avoid relative path when including headers 31/20531/1
authorLoïc Collignon <loic.collignon@iot.bzh>
Fri, 4 Jan 2019 14:22:27 +0000 (15:22 +0100)
committerLoïc Collignon <loic.collignon@iot.bzh>
Mon, 11 Mar 2019 12:31:52 +0000 (13:31 +0100)
Prefer the system path to include headers.

Change-Id: I08a64e8d27808084ea4592988f36b7e5099a7fc6
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
include/afb/afb-binding
include/afb/c++/binding
include/afb/c++/binding-object.hpp
include/afb/c++/binding-wrap.hpp

index a961a40..a76653a 100644 (file)
@@ -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>
index 5858dff..364252c 100644 (file)
@@ -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>
index f9c3bca..b85331c 100644 (file)
@@ -17,7 +17,9 @@
  * limitations under the License.
  */
 
-#include "../afb-binding.h"
+extern "C" {
+#include <afb/afb-binding.h>
+}
 #include <cassert>
 #include <string>
 
index 0cb6442..deba2c8 100644 (file)
@@ -34,7 +34,7 @@
 
 /* get C definitions of bindings */
 extern "C" {
-#include "afb-binding.h"
+#include <afb/afb-binding.h>
 }
 
 namespace afb {