pkgsrc/graphics/pngcrush/patches/patch-aa
2004-08-29 16:44:48 +00:00

26 lines
757 B
Text

$NetBSD: patch-aa,v 1.2 2004/08/29 16:44:48 kim Exp $
--- pngcrush.c.orig 2002-07-20 23:51:20.000000000 -0400
+++ pngcrush.c 2004-08-29 12:43:38.000000000 -0400
@@ -416,7 +416,20 @@
*/
#define PNG_INTERNAL
-#include "png.h"
+#include <png.h>
+
+#ifndef HANDLE_CHUNK_AS_DEFAULT
+#define HANDLE_CHUNK_AS_DEFAULT PNG_HANDLE_CHUNK_AS_DEFAULT
+#endif
+#ifndef HANDLE_CHUNK_NEVER
+#define HANDLE_CHUNK_NEVER PNG_HANDLE_CHUNK_NEVER
+#endif
+#ifndef HANDLE_CHUNK_IF_SAFE
+#define HANDLE_CHUNK_IF_SAFE PNG_HANDLE_CHUNK_IF_SAFE
+#endif
+#ifndef HANDLE_CHUNK_ALWAYS
+#define HANDLE_CHUNK_ALWAYS PNG_HANDLE_CHUNK_ALWAYS
+#endif
/* we don't need the some of the extra libpng transformations
* so they are ifdef'ed out in a special version of pngconf.h, which