Avoid relative path when including headers
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>
Fri, 4 Jan 2019 15:54:52 +0000 (16:54 +0100)
Prefer the system path to include headers.

Change-Id: Id20d7c07b628bb8da25abeef3bc10456693a93f9
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 46e671d..364252c 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..0cce021 100644 (file)
@@ -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>
+
index 9a9e5b6..6534136 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 2184772..f3747dd 100644 (file)
@@ -34,7 +34,7 @@
 
 /* get C definitions of bindings */
 extern "C" {
-#include "afb-binding.h"
+#include <afb/afb-binding.h>
 }
 
 namespace afb {