Update header check.
[m6w6/libmemcached] / libmemcached / memory.h
index 3d5faf8a243fb4930e4fc79b0f7c9a0c435bdc3a..06cc9985b27b8ea240b6b10507a22974fa87ff06 100644 (file)
 
 #pragma once
 
+#include <config.h>
+
 #include <libmemcached-1.0/struct/memcached.h>
 
 #ifdef __cplusplus
 #include <cstddef>
 #include <cstdlib>
-#include <memory>
 #else
 #include <stddef.h>
 #include <stdlib.h>
@@ -86,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)))
@@ -102,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)))