gcc和mdk都能编译成功
This commit is contained in:
@@ -135,10 +135,17 @@ static array_def *protu_try_decode(protu_def *p,array_def *data)
|
||||
(decode_data=p->codec->decode(p,data),strcmp(p->str_err,"ok")!=0))
|
||||
{
|
||||
CHECK_DO(decode_data,arr_delete);
|
||||
#if defined (__CC_ARM)
|
||||
extern const int codecstruct$$Base;
|
||||
extern const int codecstruct$$Limit;
|
||||
codec_item *start=(codec_item *)&codecstruct$$Base;
|
||||
codec_item *end=(codec_item *)&codecstruct$$Limit;
|
||||
#else
|
||||
extern const int __start_codecstruct;
|
||||
extern const int __stop_codecstruct;
|
||||
codec_item *start=(codec_item *)&__start_codecstruct;
|
||||
codec_item *end=(codec_item *)&__stop_codecstruct;
|
||||
#endif
|
||||
for(codec_item *t=start;t<end;t++)
|
||||
{
|
||||
decode_data=t->decode(p,data);
|
||||
|
Reference in New Issue
Block a user