diff --git a/src/storage.h b/src/storage.h index fa3cd5b8c..5aee09817 100644 --- a/src/storage.h +++ b/src/storage.h @@ -3,6 +3,10 @@ #define OBJ_ENCODING_EMBSTR_SIZE_LIMIT 44 // Note: also defined in object.c - should always match +#ifdef __cplusplus +extern "C" { +#endif + enum MALLOC_CLASS { MALLOC_LOCAL, @@ -22,4 +26,8 @@ void sfree_objembstr(struct redisObject *obj); struct redisObject *salloc_obj(); void sfree_obj(struct redisObject *obj); +#ifdef __cplusplus +} +#endif + #endif