eed7c62887
All fixes by yours truly.
25 lines
594 B
Plaintext
25 lines
594 B
Plaintext
$OpenBSD: patch-images_fl_png_cxx,v 1.2 2011/07/08 20:38:01 naddy Exp $
|
|
|
|
Fix build with png-1.5.
|
|
|
|
--- images/fl_png.cxx.orig Mon Apr 16 08:48:06 2007
|
|
+++ images/fl_png.cxx Tue Jul 5 22:22:44 2011
|
|
@@ -31,7 +31,7 @@
|
|
#if HAVE_LIBPNG
|
|
extern "C"
|
|
{
|
|
-#ifdef HAVE_LOCAL_PNG_H
|
|
+#ifdef HAVE_LIBPNG_PNG_H
|
|
# include "libpng/png.h"
|
|
#else
|
|
# include <png.h>
|
|
@@ -62,7 +62,7 @@ bool pngImage::test(const uchar* datas, unsigned size)
|
|
#if !HAVE_LIBPNG
|
|
return 0;
|
|
#else
|
|
- return png_check_sig((png_byte*)datas, (int)size)!=0;
|
|
+ return png_sig_cmp((png_byte*)datas, 0, (size_t)size)==0;
|
|
#endif
|
|
}
|
|
|