Dummy zmalloc.h restored into deps/hiredis.

This commit is contained in:
antirez
2014-06-23 11:44:34 +02:00
parent 28f32c99d0
commit 1506c64c8b
+13
View File
@@ -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