Hello there,
I am having problem with line in my code which is
NOTE: typedef unsigned char mz_uint8;
mz_uint8 pnghdr[41]={0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,0x44,0x52,0,0,(mz_uint8)(w>>8),(mz_uint8)w,0,0,(mz_uint8)(h>>8),(mz_uint8)h,8,"\0\0\04\02\06"[num_chans],0,0,0,0,0,0,0,(mz_uint8)(*pLen_out>>24),(mz_uint8)(*pLen_out>>16),(mz_uint8)(*pLen_out>>8),(mz_uint8)*pLen_out,0x49,0x44,0x41,0x54};
I am to implement code from this open source file
https://code.google.com/p/miniz/source/browse/trunk/miniz.c#2780
What is wrong with line of code ? It is working other compiler but not TI compiler? How to get rid of this?
Error Detail :
Description Resource Path Location Type
#28 expression must have a constant value mbad1CODE.c /mmcsd2 line 2818 C/C++ Problem
Thanks in Advance.