summaryrefslogtreecommitdiff
path: root/alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'alloc.h')
-rw-r--r--alloc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/alloc.h b/alloc.h
index 803129c..fdabd2a 100644
--- a/alloc.h
+++ b/alloc.h
@@ -36,9 +36,17 @@
#define HIREDIS_OOM_HANDLER abort()
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void *hi_malloc(size_t size);
void *hi_calloc(size_t nmemb, size_t size);
void *hi_realloc(void *ptr, size_t size);
char *hi_strdup(const char *str);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* HIREDIS_ALLOC_H */