summaryrefslogtreecommitdiffstats
path: root/libs/cgilib/patches/300-cpp_bugfix.patch
blob: c06f81612391896614608f9d76ec372c0de78f5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- 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_ */