From a01c5b1352dd81d946b1c403bf632fa079a26c0b Mon Sep 17 00:00:00 2001 From: Ryan Tecco Date: Sun, 21 Nov 2010 16:21:46 -0800 Subject: [PATCH] more extern "C" declarations for C++ compiles --- async.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/async.h b/async.h index be3a7a9..f93fc0d 100644 --- a/async.h +++ b/async.h @@ -31,6 +31,10 @@ #define __HIREDIS_ASYNC_H #include "hiredis.h" +#ifdef __cplusplus +extern "C" { +#endif + struct redisAsyncContext; /* need forward declaration of redisAsyncContext */ /* Reply callback prototype and container */ @@ -93,4 +97,8 @@ int redisvAsyncCommand(redisAsyncContext *ac, redisCallbackFn *fn, void *privdat int redisAsyncCommand(redisAsyncContext *ac, redisCallbackFn *fn, void *privdata, const char *format, ...); int redisAsyncCommandArgv(redisAsyncContext *ac, redisCallbackFn *fn, void *privdata, int argc, const char **argv, const size_t *argvlen); +#ifdef __cplusplus +} +#endif + #endif