mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-07 19:30:47 -04:00
18 lines
500 B
C++
18 lines
500 B
C++
$NetBSD: patch-src_base_TidyPointer.h,v 1.1 2013/02/10 18:16:53 adam Exp $
|
|
|
|
Define NULL if not defined.
|
|
|
|
--- src/base/TidyPointer.h.orig 2011-07-08 09:42:57.000000000 +0000
|
|
+++ src/base/TidyPointer.h
|
|
@@ -1,6 +1,10 @@
|
|
#ifndef SQUID_BASE_TIDYPOINTER_H
|
|
#define SQUID_BASE_TIDYPOINTER_H
|
|
|
|
+#ifndef NULL
|
|
+#define NULL ((void *)0)
|
|
+#endif
|
|
+
|
|
/**
|
|
* A pointer that deletes the object it points to when the pointer's owner or
|
|
* context is gone. Similar to std::auto_ptr but without confusing assignment
|