[package] update cgilib to 0.7 (#5367)
[openwrt/svn-archive/archive.git] / libs / cgilib / patches / 300-cpp_bugfix.patch
1 --- a/cgi.h
2 +++ b/cgi.h
3 @@ -24,6 +24,10 @@
4 extern "C" {
5 #endif
6
7 +#ifdef __cplusplus
8 +extern "C" {
9 +#endif
10 +
11 typedef struct var_s {
12 char *name,
13 *value;
14 @@ -146,4 +150,8 @@ char *cgiEscape (char *string);
15 extern }
16 #endif
17
18 +#ifdef __cplusplus
19 +} /* end of extern "C" */
20 +#endif
21 +
22 #endif /* _CGI_H_ */