fix include path
[project/uci.git] / uci.h
diff --git a/uci.h b/uci.h
index fe5e31443d820520111a86ab1f88b5b4ee467483..97bff7d337d620ddd130d307370764b8b69d57cc 100644 (file)
--- a/uci.h
+++ b/uci.h
 #ifndef __LIBUCI_H
 #define __LIBUCI_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include "uci_config.h"
 
 /*
@@ -710,4 +714,8 @@ uci_lookup_option_string(struct uci_context *ctx, struct uci_section *s, const c
        return o->v.string;
 }
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif