From: Glenn Randers-P. <gl...@gm...> - 2010-11-24 20:12:05
|
Is this about right to put in libpng-1.4.5/png.h? /* The following definition introduces an API incompatibility (but not * an ABI incompatibility) with libpng-1.4.0 through 1.4.4. Prior to * libpng-1.4.5 the macro, which is used by default, returned (incorrectly) * a (png_uint_32), while the function, if used instead, correctly returned * a (png_uint_16). * * Libpng versions 1.0.x and 1.2.x only used functions so are not affected * by this potential API incompatibility among macros. */ # define png_get_uint_16(buf) \ ((png_uint_16) \ (((unsigned int)(*(buf)) << 8) + \ ((unsigned int)(*((buf) + 1))))) Glenn |