[libpng15] Changed "PNG_EXTERN" to "extern" in sRGB table declarations

in pngpriv.h
This commit is contained in:
Glenn Randers-Pehrson 2011-11-16 12:47:33 -06:00
parent 89c2f84287
commit 45bb9a62ba

View File

@ -519,14 +519,14 @@ typedef PNG_CONST png_uint_16p FAR * png_const_uint_16pp;
#if defined PNG_SIMPLIFIED_READ_SUPPORTED ||\ #if defined PNG_SIMPLIFIED_READ_SUPPORTED ||\
defined PNG_SIMPLIFIED_WRITE_SUPPORTED defined PNG_SIMPLIFIED_WRITE_SUPPORTED
#ifdef PNG_SIMPLIFIED_READ_SUPPORTED #ifdef PNG_SIMPLIFIED_READ_SUPPORTED
PNG_EXTERN /*PRIVATE*/ png_uint_16 png_sRGB_table[256]; extern /*PRIVATE*/ png_uint_16 png_sRGB_table[256];
/* Convert from an sRGB encoded value 0..255 to a 16-bit linear value, /* Convert from an sRGB encoded value 0..255 to a 16-bit linear value,
* 0..65535. This table gives the closes 16-bit answers (no errors). * 0..65535. This table gives the closes 16-bit answers (no errors).
*/ */
#endif #endif
PNG_EXTERN /*PRIVATE*/ png_uint_16 png_sRGB_base[512]; extern /*PRIVATE*/ png_uint_16 png_sRGB_base[512];
PNG_EXTERN /*PRIVATE*/ png_byte png_sRGB_delta[512]; extern /*PRIVATE*/ png_byte png_sRGB_delta[512];
#define PNG_sRGB_FROM_LINEAR(linear) ((png_sRGB_base[(linear)>>15] +\ #define PNG_sRGB_FROM_LINEAR(linear) ((png_sRGB_base[(linear)>>15] +\
((((linear)&0x7fff)*png_sRGB_delta[(linear)>>15])>>12)) >> 8) ((((linear)&0x7fff)*png_sRGB_delta[(linear)>>15])>>12)) >> 8)