From 74254a3b392ee391cd6e4667370d0c7963bb986b Mon Sep 17 00:00:00 2001 From: Ryan Tecco Date: Tue, 8 Jun 2010 14:02:56 -0700 Subject: add extern "C" for C++ compiles --- hiredis.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hiredis.h b/hiredis.h index cb25b36..21098cc 100644 --- a/hiredis.h +++ b/hiredis.h @@ -69,6 +69,10 @@ #define REDIS_REPLY_NIL 4 #define REDIS_REPLY_STATUS 5 +#ifdef __cplusplus +extern "C" { +#endif + /* This is the reply object returned by redisCommand() */ typedef struct redisReply { int type; /* REDIS_REPLY_* */ @@ -154,4 +158,8 @@ void *redisvCommand(redisContext *c, const char *format, va_list ap); void *redisCommand(redisContext *c, const char *format, ...); void *redisCommandArgv(redisContext *c, int argc, const char **argv, const size_t *argvlen); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.2.3