/**
* Allocate an array of elements of one data type. Does type-checking.
*/
+#if _SAMBA_BUILD_ == 3
+#define malloc_array_p(type, count) (type *)realloc_array(NULL, sizeof(type), count, false)
+#else
#define malloc_array_p(type, count) (type *)realloc_array(NULL, sizeof(type), count)
+#endif
/**
* Resize an array of elements of one data type. Does type-checking.
*/
+#if _SAMBA_BUILD_ == 3
+#define realloc_p(p, type, count) (type *)realloc_array(p, sizeof(type), count, false)
+#else
#define realloc_p(p, type, count) (type *)realloc_array(p, sizeof(type), count)
+#endif
/**
* zero a structure
#if _SAMBA_BUILD_ == 3
#undef malloc
#undef realloc
-#define realloc_p(p, type, count) (type *)realloc_array(p, sizeof(type), count, false)
#endif
/**
/* Lists, trees, caching, database... */
#include "../lib/util/xfile.h"
+#include "../lib/util/memory.h"
#include "intl.h"
#include "../lib/util/dlinklist.h"
#include "tdb.h"