diff options
author | Ryan Tecco <ryan@triggit.com> | 2010-11-21 16:21:46 -0800 |
---|---|---|
committer | Ryan Tecco <ryan@triggit.com> | 2010-11-21 16:21:46 -0800 |
commit | a01c5b1352dd81d946b1c403bf632fa079a26c0b (patch) | |
tree | bd9eeb491b84067414c7a2ed1c5f896c96fb3fd5 | |
parent | 650df0f98241ff1871c91ca4602ace160ca9d359 (diff) |
more extern "C" declarations for C++ compiles
-rw-r--r-- | async.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |