[arch-dev-public] wesnoth issue with png

Tobias Powalowski t.powa at gmx.de
Fri Jan 22 05:10:02 EST 2010


Hi guys need some help on wesnoth,
tools/exploder_utils.cpp: In function 'void save_image(surface, const 
std::string&)':
tools/exploder_utils.cpp:177: error: 'png_voidp_NULL' was not declared in this 
scope
tools/exploder_utils.cpp:178: error: 'png_error_ptr_NULL' was not declared in 
this scope
make[2]: *** [tools/exploder_utils.o] Error 1

affected codepart:
	png_struct* png_ptr = png_create_write_struct
		(PNG_LIBPNG_VER_STRING, (png_voidp)png_voidp_NULL,
		 png_error_ptr_NULL, png_error_ptr_NULL);


snip from changelog of 1.4 libpng
   b. We removed the typecasted NULL definitions such as

          #define png_voidp_NULL    (png_voidp)NULL

      If you used these in your application, just use NULL instead.

so what should i add?

thanks
greetings
tpowa
-- 
Tobias Powalowski
Archlinux Developer & Package Maintainer (tpowa)
http://www.archlinux.org
tpowa at archlinux.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mailman.archlinux.org/pipermail/arch-dev-public/attachments/20100122/e442ee66/attachment.bin>


More information about the arch-dev-public mailing list