packages/libs/cgilib/patches/300-cpp_bugfix.patch
florian 0dd8ea916b [package] update cgilib to 0.7 (#5367)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@16502 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-18 12:41:23 +00:00

23 lines
311 B
Diff

--- a/cgi.h
+++ b/cgi.h
@@ -24,6 +24,10 @@
extern "C" {
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct var_s {
char *name,
*value;
@@ -146,4 +150,8 @@ char *cgiEscape (char *string);
extern }
#endif
+#ifdef __cplusplus
+} /* end of extern "C" */
+#endif
+
#endif /* _CGI_H_ */