1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 12:00:31 +01:00

Fix png 1.4+ builds

- png_check_sig was removed from png 1.4, use replacement fun, which is
  already present in 1.2.0 (cca. 2001)
This commit is contained in:
Tamas TEVESZ
2010-03-29 11:30:47 +02:00
committed by Carlos R. Mafra
parent 0c2d2c69b9
commit 7b9b7de172

View File

@@ -330,7 +330,7 @@ static int identFile(char *path)
#ifdef USE_PNG
/* check for PNG */
if (png_check_sig(buffer, 8))
if (!png_sig_cmp(buffer, 0, 8))
return IM_PNG;
#endif