summaryrefslogtreecommitdiffstats
path: root/deps/hdr_histogram/hdr_redis_malloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/hdr_histogram/hdr_redis_malloc.h')
-rw-r--r--deps/hdr_histogram/hdr_redis_malloc.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/deps/hdr_histogram/hdr_redis_malloc.h b/deps/hdr_histogram/hdr_redis_malloc.h
new file mode 100644
index 0000000..d9401ca
--- /dev/null
+++ b/deps/hdr_histogram/hdr_redis_malloc.h
@@ -0,0 +1,13 @@
+#ifndef HDR_MALLOC_H__
+#define HDR_MALLOC_H__
+
+void *zmalloc(size_t size);
+void *zcalloc_num(size_t num, size_t size);
+void *zrealloc(void *ptr, size_t size);
+void zfree(void *ptr);
+
+#define hdr_malloc zmalloc
+#define hdr_calloc zcalloc_num
+#define hdr_realloc zrealloc
+#define hdr_free zfree
+#endif