#pragma once
-#include <libmemcached-1.0/struct/memcached.h>
+#include <mem_config.h>
+
+#include <libmemcached/common.h>
#ifdef __cplusplus
#include <cstddef>
#include <cstdlib>
-#include <memory>
#else
#include <stddef.h>
#include <stdlib.h>
}
#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)))
}
#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)))