Wouldn't it be safer to use something like the following code, just in case some users are still working with an old version of libpng? That way it works for everyone.
#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4 GdImageBufferRead(png_get_io_ptr(pstruct), pointer, size); #else GdImageBufferRead(pstruct->io_ptr, pointer, size); #endif --------------------------------------------------------------------- To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org For additional commands, e-mail: nanogui-h...@linuxhacker.org