Fixed pngstruct.h detection

This commit is contained in:
Michael Jumper 2011-02-10 23:53:11 -08:00
parent 0cb6ad1502
commit a0cb37295f
2 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,7 @@ AC_CHECK_LIB([png], [png_write_png],, AC_MSG_ERROR("libpng is required for writi
AC_CHECK_LIB([wsock32], [main])
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h])
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h pngstruct.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T

View File

@ -23,8 +23,7 @@
#include <errno.h>
#include <png.h>
/* If png_structp not defined in png.h, try to include pngstruct.h */
#ifndef png_structp
#ifdef HAVE_PNGSTRUCT_H
#include <pngstruct.h>
#endif