修改编译器选择宏

This commit is contained in:
ranchuan
2023-11-02 18:25:12 +08:00
parent 17729e664f
commit 250f91bbad
4 changed files with 5 additions and 5 deletions

View File

@@ -240,7 +240,7 @@ signal_def *signal_find(void *signal_)
extern const int signalstruct$$Limit; extern const int signalstruct$$Limit;
signal_def *start=(signal_def *)&signalstruct$$Base; signal_def *start=(signal_def *)&signalstruct$$Base;
signal_def *end=(signal_def *)&signalstruct$$Limit; signal_def *end=(signal_def *)&signalstruct$$Limit;
#else #elif defined (__GNUC__)
extern const int __start_signalstruct; extern const int __start_signalstruct;
extern const int __stop_signalstruct; extern const int __stop_signalstruct;
signal_def *start=(signal_def *)&__start_signalstruct; signal_def *start=(signal_def *)&__start_signalstruct;

View File

@@ -28,7 +28,7 @@ static commend_def *cmd_find(char *name)
extern const int cmdstruct$$Limit; extern const int cmdstruct$$Limit;
commend_def *start=(commend_def *)&cmdstruct$$Base; commend_def *start=(commend_def *)&cmdstruct$$Base;
commend_def *end=(commend_def *)&cmdstruct$$Limit; commend_def *end=(commend_def *)&cmdstruct$$Limit;
#else #elif defined(__GNUC__)
extern const int __start_cmdstruct; extern const int __start_cmdstruct;
extern const int __stop_cmdstruct; extern const int __stop_cmdstruct;
commend_def *start=(commend_def *)&__start_cmdstruct; commend_def *start=(commend_def *)&__start_cmdstruct;
@@ -126,7 +126,7 @@ static int cmd_help(list_def *argv)
extern const int cmdstruct$$Limit; extern const int cmdstruct$$Limit;
commend_def *start=(commend_def *)&cmdstruct$$Base; commend_def *start=(commend_def *)&cmdstruct$$Base;
commend_def *end=(commend_def *)&cmdstruct$$Limit; commend_def *end=(commend_def *)&cmdstruct$$Limit;
#else #elif defined (__GNUC__)
extern const int __start_cmdstruct; extern const int __start_cmdstruct;
extern const int __stop_cmdstruct; extern const int __stop_cmdstruct;
commend_def *start=(commend_def *)&__start_cmdstruct; commend_def *start=(commend_def *)&__start_cmdstruct;

View File

@@ -140,7 +140,7 @@ static array_def *protu_try_decode(protu_def *p,array_def *data)
extern const int codecstruct$$Limit; extern const int codecstruct$$Limit;
codec_item *start=(codec_item *)&codecstruct$$Base; codec_item *start=(codec_item *)&codecstruct$$Base;
codec_item *end=(codec_item *)&codecstruct$$Limit; codec_item *end=(codec_item *)&codecstruct$$Limit;
#else #elif defined (__GNUC__)
extern const int __start_codecstruct; extern const int __start_codecstruct;
extern const int __stop_codecstruct; extern const int __stop_codecstruct;
codec_item *start=(codec_item *)&__start_codecstruct; codec_item *start=(codec_item *)&__start_codecstruct;

View File

@@ -129,7 +129,7 @@ static ucport_item *cmd_find(const char *codec_name,uint8_t cmd)
extern const int transtruct$$Limit; extern const int transtruct$$Limit;
ucport_item *start=(ucport_item *)&transtruct$$Base; ucport_item *start=(ucport_item *)&transtruct$$Base;
ucport_item *end=(ucport_item *)&transtruct$$Limit; ucport_item *end=(ucport_item *)&transtruct$$Limit;
#else #elif defined (__GNUC__)
extern const int __start_transtruct; extern const int __start_transtruct;
extern const int __stop_transtruct; extern const int __stop_transtruct;
ucport_item *start=(ucport_item *)&__start_transtruct; ucport_item *start=(ucport_item *)&__start_transtruct;