gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] C++ compatibility fix


From: mabrand
Subject: [PATCH] C++ compatibility fix
Date: Fri, 25 Mar 2011 22:05:08 +0100

From: Mark Brand <address@hidden>

---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]