Commit 74254a3b authored by Ryan Tecco's avatar Ryan Tecco Committed by Pieter Noordhuis
Browse files

add extern "C" for C++ compiles

parent 09a0fe62
...@@ -69,6 +69,10 @@ ...@@ -69,6 +69,10 @@
#define REDIS_REPLY_NIL 4 #define REDIS_REPLY_NIL 4
#define REDIS_REPLY_STATUS 5 #define REDIS_REPLY_STATUS 5
#ifdef __cplusplus
extern "C" {
#endif
/* This is the reply object returned by redisCommand() */ /* This is the reply object returned by redisCommand() */
typedef struct redisReply { typedef struct redisReply {
int type; /* REDIS_REPLY_* */ int type; /* REDIS_REPLY_* */
...@@ -154,4 +158,8 @@ void *redisvCommand(redisContext *c, const char *format, va_list ap); ...@@ -154,4 +158,8 @@ void *redisvCommand(redisContext *c, const char *format, va_list ap);
void *redisCommand(redisContext *c, const char *format, ...); void *redisCommand(redisContext *c, const char *format, ...);
void *redisCommandArgv(redisContext *c, int argc, const char **argv, const size_t *argvlen); void *redisCommandArgv(redisContext *c, int argc, const char **argv, const size_t *argvlen);
#ifdef __cplusplus
}
#endif
#endif #endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment