summaryrefslogtreecommitdiff
path: root/graphics/pngcrush/patches/patch-aa
blob: 44f2966e201d43af664c613f3268e11e10ca99cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$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