mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Workarounds for png code in some older versions of VC.
This commit is contained in:
parent
9b9717371d
commit
0a0e0bc60d
1 changed files with 3 additions and 3 deletions
|
|
@ -456,7 +456,7 @@ png_inflate(png_structrp png_ptr, png_uint_32 owner, int finish,
|
|||
do
|
||||
{
|
||||
uInt avail;
|
||||
Byte local_buffer[PNG_INFLATE_BUF_SIZE];
|
||||
unsigned char local_buffer[PNG_INFLATE_BUF_SIZE];
|
||||
|
||||
/* zlib INPUT BUFFER */
|
||||
/* The setting of 'avail_in' used to be outside the loop; by setting it
|
||||
|
|
@ -1360,8 +1360,8 @@ png_handle_iCCP(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
|
|||
if (png_inflate_claim(png_ptr, png_iCCP,
|
||||
png_ptr->flags & PNG_FLAG_BENIGN_ERRORS_WARN ? 15 : 0) == Z_OK)
|
||||
{
|
||||
Byte profile_header[132];
|
||||
Byte local_buffer[PNG_INFLATE_BUF_SIZE];
|
||||
unsigned char profile_header[132];
|
||||
unsigned char local_buffer[PNG_INFLATE_BUF_SIZE];
|
||||
png_alloc_size_t size = (sizeof profile_header);
|
||||
|
||||
png_ptr->zstream.next_in = (Bytef*)keyword + (keyword_length+2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue