Include zlib.h when necessary.
authorTim Terriberry <tterribe@xiph.org>
Tue, 8 Jan 2013 16:45:06 +0000 (16:45 +0000)
committerTim Terriberry <tterribe@xiph.org>
Tue, 8 Jan 2013 16:45:06 +0000 (16:45 +0000)
Newer versions of png.h don't include it for us.
This is only needed when compiling with OC_DUMP_IMAGES (i.e., for
 debugging).

git-svn-id: http://svn.xiph.org/trunk/theora@18760 0101bb08-14d6-0310-b084-bc0e0c8e3800

lib/state.c

index 261ea81..acc8f22 100644 (file)
@@ -21,6 +21,7 @@
 #if defined(OC_DUMP_IMAGES)
 # include <stdio.h>
 # include "png.h"
+# include "zlib.h"
 #endif
 
 /*The function used to fill in the chroma plane motion vectors for a macro