#include "protos.h"
#include "globals.h"
+/* Exclude CPPUnit tests from the below restriction. */
+/* BSD implementation uses these still */
+#if !defined(SQUID_UNIT_TEST)
/*
* Squid source files should not call these functions directly.
* Use xmalloc, xfree, xcalloc, snprintf, and xstrdup instead.
#endif
template <class V>
void free(V x) { fatal("Do not use ::free()"); }
-
#ifndef calloc
#define calloc +
#endif
#ifndef strdup
#define strdup +
#endif
+#endif /* !SQUID_UNIT_TEST */
/*
* Hey dummy, don't be tempted to move this to lib/config.h.in