define PNG_FAST_FILTERS if png.h doesn't have it
This commit is contained in:
parent
7e2aab171f
commit
8e34b323b5
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue