make miniz.h build with watcom
authorOzkan Sezer <sezeroz@gmail.com>
Tue, 12 Jun 2018 21:51:30 +0300
changeset 582335864e0a7a6
parent 581 7c194080f8f8
child 583 5fa46fcf9499
make miniz.h build with watcom
miniz.h
     1.1 --- a/miniz.h	Tue Jun 12 13:30:55 2018 +0300
     1.2 +++ b/miniz.h	Tue Jun 12 21:51:30 2018 +0300
     1.3 @@ -2834,8 +2834,17 @@
     1.4    {
     1.5      static const mz_uint8 chans[] = {0x00, 0x00, 0x04, 0x02, 0x06};
     1.6      mz_uint8 pnghdr[41]={0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,0x44,0x52,
     1.7 -      0,0,(mz_uint8)(w>>8),(mz_uint8)w,0,0,(mz_uint8)(h>>8),(mz_uint8)h,8,chans[num_chans],0,0,0,0,0,0,0,
     1.8 -      (mz_uint8)(*pLen_out>>24),(mz_uint8)(*pLen_out>>16),(mz_uint8)(*pLen_out>>8),(mz_uint8)*pLen_out,0x49,0x44,0x41,0x54};
     1.9 +      0, 0, 0/*[18]*/, 0/*[19]*/, 0, 0, 0/*[22]*/, 0/*[23]*/, 8, 0/*[25]*/, 0,0,0,0,0,0,0,
    1.10 +      0/*[33]*/, 0/*[34]*/, 0/*[35]*/, 0/*[36]*/, 0x49, 0x44, 0x41, 0x54};
    1.11 +    pnghdr[18] = (mz_uint8)(w>>8);
    1.12 +    pnghdr[19] = (mz_uint8)w;
    1.13 +    pnghdr[22] = (mz_uint8)(h>>8);
    1.14 +    pnghdr[23] = (mz_uint8)h;
    1.15 +    pnghdr[25] = chans[num_chans];
    1.16 +    pnghdr[33] = (mz_uint8)(*pLen_out>>24);
    1.17 +    pnghdr[34] = (mz_uint8)(*pLen_out>>16);
    1.18 +    pnghdr[35] = (mz_uint8)(*pLen_out>>8);
    1.19 +    pnghdr[36] = (mz_uint8)*pLen_out;
    1.20      c=(mz_uint32)mz_crc32(MZ_CRC32_INIT,pnghdr+12,17); for (i=0; i<4; ++i, c<<=8) ((mz_uint8*)(pnghdr+29))[i]=(mz_uint8)(c>>24);
    1.21      memcpy(out_buf.m_pBuf, pnghdr, 41);
    1.22    }