From: Felix Fietkau Date: Tue, 15 Mar 2011 03:05:15 +0000 (+0100) Subject: improve support for C++ stuff X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=commitdiff_plain;h=9080634cc6339051c5a9943be181888b0e994cd2;ds=sidebyside improve support for C++ stuff --- 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