]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
C++ compatibility fix for compat.h. Suggested by Mark Brand.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 25 Mar 2011 23:52:01 +0000 (00:52 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 26 Mar 2011 00:04:28 +0000 (01:04 +0100)
lib/includes/gnutls/compat.h

index 9399e0b01e76360b066a18cd67a37f1f11433062..e6b92776a7e3aab60ec748cf88d7540b698d74c2 100644 (file)
@@ -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 */