summaryrefslogtreecommitdiff
path: root/alloc.h
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2020-02-27 21:29:05 -0800
committerGitHub <noreply@github.com>2020-02-27 21:29:05 -0800
commit38675d23cc3bb45e2dfdeaed3a4a843f698731b3 (patch)
treec00fa09d41ee91d4d42fda4849963a3b175cc32d /alloc.h
parent3421ac30932eed6d49405dd9b1b7438adc85a68e (diff)
Housekeeping fixes (#764)
Housekeeping * Check for C++ (#758, #750) * Include `alloc.h` in `make install` and `cmake` * Add a `.def` file for Windows (#760) * Include allocation wrappers referenced in adapter headers * Fix minor syntax errors and typos in README * Fix CI in Windows by properly escaping arguments (#761)
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 */