pkgsrc/graphics/tiff/patches/patch-ab
joerg 7f2cd475d3 Include stddef.h instead of defining NULL manually. This fixes
the inclusion of tiffio.h from C++ as seen in digikam.
Bump revision.
2006-02-20 17:56:36 +00:00

26 lines
586 B
Text

$NetBSD: patch-ab,v 1.18 2006/02/20 17:56:36 joerg Exp $
--- libtiff/tiffio.h.orig 2006-02-20 17:43:42.000000000 +0000
+++ libtiff/tiffio.h
@@ -30,6 +30,10 @@
/*
* TIFF I/O Library Definitions.
*/
+
+/* NULL */
+#include <stddef.h>
+
#include "tiff.h"
#include "tiffvers.h"
@@ -97,10 +101,6 @@ typedef HFILE thandle_t; /* client data
typedef void* thandle_t; /* client data handle */
#endif /* USE_WIN32_FILEIO */
-#ifndef NULL
-# define NULL (void *)0
-#endif
-
/*
* Flags to pass to TIFFPrintDirectory to control
* printing of data structures that are potentially