With old png.h, PNG_HAVE_IHDR is not defined unless PNG_INTERNAL is defined

This commit is contained in:
Shin-ichi TOYAMA 2012-08-18 09:18:41 +00:00
parent 4e7d77b9f9
commit 7d96e5a877

View file

@ -460,6 +460,7 @@ static void mtw(wchar_t * wtok, char * tok)
#endif
#define PNG_INTERNAL
#include <png.h>
#define FNAME_EXTENSION ".png"
#ifndef PNG_H