define PNG_FAST_FILTERS if png.h doesn't have it

This commit is contained in:
Mickey Rose 2017-02-01 03:02:37 +01:00
parent 7e2aab171f
commit 8e34b323b5

View file

@ -25,7 +25,10 @@ extern "C"
{
#include <png.h>
}
#ifndef PNG_FAST_FILTERS // libpng < 1.6
#define PNG_FAST_FILTERS ( PNG_FILTER_NONE | PNG_FILTER_SUB | PNG_FILTER_UP )
#endif
#endif // HAVE_PNG
// mapnik
#if defined(HAVE_PNG)