diff options
Diffstat (limited to 'hiredis_ssl.h')
-rw-r--r-- | hiredis_ssl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hiredis_ssl.h b/hiredis_ssl.h index f844f95..21e8580 100644 --- a/hiredis_ssl.h +++ b/hiredis_ssl.h @@ -32,6 +32,10 @@ #ifndef __HIREDIS_SSL_H #define __HIREDIS_SSL_H +#ifdef __cplusplus +extern "C" { +#endif + /* This is the underlying struct for SSL in ssl.h, which is not included to * keep build dependencies short here. */ @@ -50,4 +54,8 @@ int redisSecureConnection(redisContext *c, const char *capath, const char *certp int redisInitiateSSL(redisContext *c, struct ssl_st *ssl); +#ifdef __cplusplus +} +#endif + #endif /* __HIREDIS_SSL_H */ |