From: Nikos Mavrogiannopoulos Date: Fri, 25 Mar 2011 23:52:01 +0000 (+0100) Subject: C++ compatibility fix for compat.h. Suggested by Mark Brand. X-Git-Tag: gnutls_2_99_0~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=66ebfc0120a47c350c4485e195f72ff851296e30;p=thirdparty%2Fgnutls.git C++ compatibility fix for compat.h. Suggested by Mark Brand. --- 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 */