[PATCH] C++ compatibility fix

mabrand at mabrand.nl mabrand at mabrand.nl
Fri Mar 25 22:05:08 CET 2011


From: Mark Brand <mabrand at mabrand.nl>

---
 lib/includes/gnutls/compat.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/lib/includes/gnutls/compat.h b/lib/includes/gnutls/compat.h
index af02d92..6f200db 100644
--- a/lib/includes/gnutls/compat.h
+++ b/lib/includes/gnutls/compat.h
@@ -114,6 +114,10 @@
 #define LIBGNUTLS_VERSION_NUMBER GNUTLS_VERSION_NUMBER
 #define LIBGNUTLS_EXTRA_VERSION GNUTLS_VERSION
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* The gnutls_retr_st was deprecated by gnutls_certificate_retrieve_function()
  * and gnutls_retr2_st.
  */
@@ -345,4 +349,7 @@ gnutls_sign_callback_get (gnutls_session_t session, void **userdata)
 
   void gnutls_transport_set_lowat (gnutls_session_t session, int num) _GNUTLS_GCC_ATTR_DEPRECATED;
 
+#ifdef  __cplusplus
+}
+#endif
 #endif /* _GNUTLS_COMPAT_H */
-- 
1.7.4.1





More information about the Gnutls-devel mailing list