tests: fix parser test with config file
[awesomized/libmemcached] / libmemcached / memory.h
index 269338a108a591060e990bde96da13321729b6ae..12d02849124263cce017a35ee6a054d2c101c22f 100644 (file)
@@ -36,7 +36,9 @@
 
 #pragma once
 
-#include <libmemcached-1.0/struct/memcached.h>
+#include <mem_config.h>
+
+#include <libmemcached/common.h>
 
 #ifdef __cplusplus
 #include <cstddef>
@@ -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)))