From 9080634cc6339051c5a9943be181888b0e994cd2 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 15 Mar 2011 04:05:15 +0100 Subject: [PATCH] improve support for C++ stuff --- uci.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/uci.h b/uci.h index fe5e314..97bff7d 100644 --- a/uci.h +++ b/uci.h @@ -15,6 +15,10 @@ #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 -- 2.11.0