summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-03-15 04:05:15 +0100
committerFelix Fietkau <nbd@openwrt.org>2011-03-15 04:05:15 +0100
commit9080634cc6339051c5a9943be181888b0e994cd2 (patch)
treebe2878b2f4a565df14a50e188e6e595193faaaf3
parenta5eb996e0f04d911ff61479508bbc3e17b16ff0c (diff)
downloaduci-9080634cc6339051c5a9943be181888b0e994cd2.tar.gz
improve support for C++ stuff
-rw-r--r--uci.h8
1 files changed, 8 insertions, 0 deletions
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