Patch - cplusplus ifdefs for src/SSL/*.h

In 5.4.0, src/SSL/*.h wasn't wrapped for c++ compiles.

Here's a patch for that, if it hasn't been taken care of it already.

Index: Library/src/SSL/HTSSL.h
===================================================================
RCS file: /var/cvs/cvsroot/libwww/libwww/Library/src/SSL/HTSSL.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -U3 -r1.1.1.1 -r1.2
--- Library/src/SSL/HTSSL.h	6 Jun 2005 13:43:38 -0000	1.1.1.1
+++ Library/src/SSL/HTSSL.h	15 Aug 2005 02:04:47 -0000	1.2
@@ -20,6 +20,10 @@
 #ifndef _HTSSL_H
 #define _HTSSL_H
 
+#ifdef __cplusplus
+extern "C" { 
+#endif
+
 /*
 .
   The HTSSL Class
@@ -79,6 +83,10 @@
 /*
 */
 
+#ifdef __cplusplus
+} /* end extern C definitions */
+#endif
+
 #endif /* _HTSSL_H */
 
 /*
Index: Library/src/SSL/HTSSLhttps.h
===================================================================
RCS file: /var/cvs/cvsroot/libwww/libwww/Library/src/SSL/HTSSLhttps.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -U3 -r1.1.1.1 -r1.2
--- Library/src/SSL/HTSSLhttps.h	6 Jun 2005 13:43:38 -0000	1.1.1.1
+++ Library/src/SSL/HTSSLhttps.h	15 Aug 2005 02:04:47 -0000	1.2
@@ -18,6 +18,10 @@
 #ifndef _HTSSLHTTPS_H
 #define _HTSSLHTTPS_H
 
+#ifdef __cplusplus
+extern "C" { 
+#endif
+
 /*
 
 The initialization function initialies the SSL transports by doing the following:
@@ -51,6 +55,9 @@
 
 /*
 */
+#ifdef __cplusplus
+} /* end extern C definitions */
+#endif
 
 #endif /* _HTSSLHTTPS_H */
 
Index: Library/src/SSL/HTSSLReader.h
===================================================================
RCS file: /var/cvs/cvsroot/libwww/libwww/Library/src/SSL/HTSSLReader.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -U3 -r1.1.1.1 -r1.2
--- Library/src/SSL/HTSSLReader.h	6 Jun 2005 13:43:38 -0000	1.1.1.1
+++ Library/src/SSL/HTSSLReader.h	15 Aug 2005 02:04:47 -0000	1.2
@@ -36,6 +36,10 @@
 
 #include "HTIOStream.h"
 
+#ifdef __cplusplus
+extern "C" { 
+#endif
+
 /*
 .
   Input Buffering
@@ -61,6 +65,10 @@
 /*
 */
 
+#ifdef __cplusplus
+} /* end extern C definitions */
+#endif
+
 #endif /* HTSSLREADER_H */
 
 /*
Index: Library/src/SSL/HTSSLWriter.h
===================================================================
RCS file: /var/cvs/cvsroot/libwww/libwww/Library/src/SSL/HTSSLWriter.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -U3 -r1.1.1.1 -r1.2
--- Library/src/SSL/HTSSLWriter.h	6 Jun 2005 13:43:38 -0000	1.1.1.1
+++ Library/src/SSL/HTSSLWriter.h	15 Aug 2005 02:04:47 -0000	1.2
@@ -35,6 +35,10 @@
 
 #include "HTIOStream.h"
 
+#ifdef __cplusplus
+extern "C" { 
+#endif
+
 extern HTOutput_new HTSSLWriter_new;
 
 extern BOOL HTSSLWriter_set (HTOutputStream *      me,
@@ -43,6 +47,10 @@
                              void *                param,
                              int                   mode);
 
+#ifdef __cplusplus
+} /* end extern C definitions */
+#endif
+
 #endif /* HTSSLWRITE_H */
 
 /*

Received on Saturday, 22 October 2005 16:59:25 UTC