From 38675d23cc3bb45e2dfdeaed3a4a843f698731b3 Mon Sep 17 00:00:00 2001 From: Michael Grunder Date: Thu, 27 Feb 2020 21:29:05 -0800 Subject: 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) --- alloc.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'alloc.h') 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 */ -- cgit v1.2.3