openwrt_archive/libs/cgilib/patches/300-cpp_bugfix.patch
Florian Fainelli a74a1c37ed [package] update cgilib to 0.7 (#5367)
SVN-Revision: 16502
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_ */