#undef HAVE_NETDB_H
#define HAVE_NETDB_H 0
+#if !defined(S_ISDIR)
+#define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR))
+#endif
+
#endif /* _SQUID_NEXT_ */
#endif /* SQUID_OS_NEXT_H */
--- /dev/null
+#ifndef _SQUID_LEAKCHECK_H
+#define _SQUID_LEAKCHECK_H
+
+#if LEAK_CHECK_MODE && 0 /* doesn't work at the moment */
+#define LOCAL_ARRAY(type,name,size) \
+ static type *local_##name=NULL; \
+ type *name = local_##name ? local_##name : \
+ ( local_##name = (type *)xcalloc(size, sizeof(type)) )
+#else
+#define LOCAL_ARRAY(type,name,size) static type name[size]
+#endif
+
+#endif
/* temp hack: needs to be pre-defined for now. */
#define SQUID_MAXPATHLEN 256
+// TODO: determine if this is required. OR if compat/os/mswin.h works
+#if _SQUID_MSWIN_
+/** \cond AUTODOCS-IGNORE */
+using namespace Squid;
+/** \endcond */
+#endif
+
#endif /* SQUID_CONFIG_H */
#include "squid.h"
-#if _SQUID_MSWIN_
-/** \cond AUTODOCS-IGNORE */
-using namespace Squid;
-/** \endcond */
-#endif
-
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#define MAXPATHLEN SQUID_MAXPATHLEN
#endif
-#if LEAK_CHECK_MODE
-#define LOCAL_ARRAY(type,name,size) \
- static type *local_##name=NULL; \
- type *name = local_##name ? local_##name : \
- ( local_##name = (type *)xcalloc(size, sizeof(type)) )
-#else
-#define LOCAL_ARRAY(type,name,size) static type name[size]
-#endif
-
-#if _SQUID_NEXT_ && !defined(S_ISDIR)
-#define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR))
-#endif
-
#include "md5.h"
#if SQUID_SNMP
#include "cache_snmp.h"