diff options
Diffstat (limited to 'deps/hiredis/zmalloc.h')
-rw-r--r-- | deps/hiredis/zmalloc.h | 13 |
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 |