improve support for C++ stuff
authorFelix Fietkau <nbd@openwrt.org>
Tue, 15 Mar 2011 03:05:15 +0000 (04:05 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 15 Mar 2011 03:05:15 +0000 (04:05 +0100)
uci.h

diff --git a/uci.h b/uci.h
index fe5e314..97bff7d 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