summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-03-26 00:52:01 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-03-26 01:04:28 +0100
commit66ebfc0120a47c350c4485e195f72ff851296e30 (patch)
treefeecc371730ca0e276650f929091d19e7201c58a /lib
parentc9bdfc6258d7ca977afca6610e4be98117017823 (diff)
downloadgnutls-66ebfc0120a47c350c4485e195f72ff851296e30.tar.gz
C++ compatibility fix for compat.h. Suggested by Mark Brand.
Diffstat (limited to 'lib')
-rw-r--r--lib/includes/gnutls/compat.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/includes/gnutls/compat.h b/lib/includes/gnutls/compat.h
index 9399e0b01e..e6b92776a7 100644
--- a/lib/includes/gnutls/compat.h
+++ b/lib/includes/gnutls/compat.h
@@ -3,6 +3,11 @@
#ifndef _GNUTLS_COMPAT_H
#define _GNUTLS_COMPAT_H
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#ifdef __GNUC__
#define _GNUTLS_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
@@ -286,4 +291,8 @@ gnutls_sign_callback_get (gnutls_session_t session, void **userdata)
const int *list)
_GNUTLS_GCC_ATTR_DEPRECATED;
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _GNUTLS_COMPAT_H */