summaryrefslogtreecommitdiff
path: root/deps/hiredis
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-06-23 11:43:37 +0200
committerantirez <antirez@gmail.com>2014-06-23 11:44:34 +0200
commit1506c64c8b8b4a964f331f502a5d0006dd3077f0 (patch)
tree552bbe76b56fd12247d302f58cf39800a84fd87b /deps/hiredis
parent28f32c99d0118eb60b236a0c8a96ea4bd9b7fa5b (diff)
downloadredis-1506c64c8b8b4a964f331f502a5d0006dd3077f0.tar.gz
Dummy zmalloc.h restored into deps/hiredis.
Diffstat (limited to 'deps/hiredis')
-rw-r--r--deps/hiredis/zmalloc.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/deps/hiredis/zmalloc.h b/deps/hiredis/zmalloc.h
new file mode 100644
index 000000000..99b87ace9
--- /dev/null
+++ b/deps/hiredis/zmalloc.h
@@ -0,0 +1,13 @@
+/* Drop in replacement for zmalloc.h in order to just use libc malloc without
+ * any wrappering. */
+
+#ifndef ZMALLOC_H
+#define ZMALLOC_H
+
+#define zmalloc malloc
+#define zrealloc realloc
+#define zcalloc(x) calloc(x,1)
+#define zfree free
+#define zstrdup strdup
+
+#endif