diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-03-26 00:52:01 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-03-26 00:52:01 +0100 |
commit | c2347c675f526f0a3bcc0b0a92a5a493d9c697da (patch) | |
tree | 80f97aa80aab3dc157bda2bfa8a68f1a1ec593a3 | |
parent | 24a7f63c4abb84786dec5d2eaeaa455b7bf24cb0 (diff) | |
download | gnutls-c2347c675f526f0a3bcc0b0a92a5a493d9c697da.tar.gz |
C++ compatibility fix for compat.h. Suggested by Mark Brand.
-rw-r--r-- | lib/includes/gnutls/compat.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/includes/gnutls/compat.h b/lib/includes/gnutls/compat.h index af02d92462..beb9dfc33a 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__) @@ -345,4 +350,8 @@ 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 */ |