futriix/deps/hdr_histogram/hdr_redis_malloc.h
Romain Geissler @ Amadeus e30ae762a8
Rename z{malloc,calloc,realloc,free} into valkey_{malloc,calloc,realloc,free} (#1169)
The zcalloc symbol is a symbol name already used by zlib, which is
defining other names using the "z" prefix specific to zlib. In practice,
linking valkey with a static openssl, which itself might depend on a
static libz will result in link time error rejecting multiple symbol
definitions.

Fixes: #1157

Signed-off-by: Romain Geissler <romain.geissler@amadeus.com>
2024-10-15 13:05:22 +02:00

14 lines
336 B
C

#ifndef HDR_MALLOC_H__
#define HDR_MALLOC_H__
void *valkey_malloc(size_t size);
void *zcalloc_num(size_t num, size_t size);
void *valkey_realloc(void *ptr, size_t size);
void valkey_free(void *ptr);
#define hdr_malloc valkey_malloc
#define hdr_calloc zcalloc_num
#define hdr_realloc valkey_realloc
#define hdr_free valkey_free
#endif