From 759510c24cfab413efc3300380f7d4fb6da8841e Mon Sep 17 00:00:00 2001 From: Jakob Olsson <Jakob Olsson> Date: Tue, 3 Dec 2019 11:20:02 +0100 Subject: [PATCH] schema: add extern C around c headers --- src/schema.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/schema.cpp b/src/schema.cpp index 015911d..d52bb00 100644 --- a/src/schema.cpp +++ b/src/schema.cpp @@ -1,3 +1,5 @@ +extern "C" +{ #include <libubox/avl.h> #include <libubox/avl-cmp.h> #include <libubox/blobmsg.h> @@ -8,7 +10,7 @@ #include <stdio.h> #include <stdlib.h> #include <regex.h> - +} #include "schema.h" #define JSON_SCHEMA_DIR "/usr/share/rpcd/schemas" -- GitLab