X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fmemory.h;h=06cc9985b27b8ea240b6b10507a22974fa87ff06;hb=12911320d89ae182f96305d11830f6168bcdd8e6;hp=269338a108a591060e990bde96da13321729b6ae;hpb=ec99120a205e0b807b05e3cbe386298075fd183f;p=awesomized%2Flibmemcached diff --git a/libmemcached/memory.h b/libmemcached/memory.h index 269338a1..06cc9985 100644 --- a/libmemcached/memory.h +++ b/libmemcached/memory.h @@ -36,6 +36,8 @@ #pragma once +#include + #include #ifdef __cplusplus @@ -85,9 +87,9 @@ static inline void *libmemcached_realloc(const memcached_st *self, void *mem, si } #ifdef __cplusplus - return std::realloc(mem, size); + return std::realloc(mem, size); #else - return realloc(mem, size); + return realloc(mem, size); #endif } #define libmemcached_xrealloc(__memcachd_st, __mem, __nelem, __type) ((__type *)libmemcached_realloc((__memcachd_st), (__mem), (__nelem), sizeof(__type))) @@ -101,9 +103,9 @@ static inline void *libmemcached_calloc(const memcached_st *self, size_t nelem, } #ifdef __cplusplus - return std::calloc(nelem, size); + return std::calloc(nelem, size); #else - return calloc(nelem, size); + return calloc(nelem, size); #endif } #define libmemcached_xcalloc(__memcachd_st, __nelem, __type) ((__type *)libmemcached_calloc((__memcachd_st), (__nelem), sizeof(__type)))