W3C home > Mailing lists > Public > www-lib@w3.org > October to December 2005

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

From: Sam Varshavchik <mrsam@courier-mta.com>
Date: Sat, 22 Oct 2005 12:59:22 -0400
Message-ID: <cone.1130000362.926857.5995.500@commodore.email-scan.com>
To: libwww <www-lib@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:45 GMT