From 250f91bbad827efa6590cd9bfecf5807b21e430b Mon Sep 17 00:00:00 2001 From: ranchuan Date: Thu, 2 Nov 2023 18:25:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=96=E8=AF=91=E5=99=A8?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=AE=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/soft/signal.c | 2 +- source/task/commend.c | 4 ++-- source/task/prot_uc.c | 2 +- source/task/transmit.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/soft/signal.c b/source/soft/signal.c index 7b43d39..577cc01 100644 --- a/source/soft/signal.c +++ b/source/soft/signal.c @@ -240,7 +240,7 @@ signal_def *signal_find(void *signal_) extern const int signalstruct$$Limit; signal_def *start=(signal_def *)&signalstruct$$Base; signal_def *end=(signal_def *)&signalstruct$$Limit; -#else +#elif defined (__GNUC__) extern const int __start_signalstruct; extern const int __stop_signalstruct; signal_def *start=(signal_def *)&__start_signalstruct; diff --git a/source/task/commend.c b/source/task/commend.c index e9636c0..0f34b1b 100644 --- a/source/task/commend.c +++ b/source/task/commend.c @@ -28,7 +28,7 @@ static commend_def *cmd_find(char *name) extern const int cmdstruct$$Limit; commend_def *start=(commend_def *)&cmdstruct$$Base; commend_def *end=(commend_def *)&cmdstruct$$Limit; -#else +#elif defined(__GNUC__) extern const int __start_cmdstruct; extern const int __stop_cmdstruct; commend_def *start=(commend_def *)&__start_cmdstruct; @@ -126,7 +126,7 @@ static int cmd_help(list_def *argv) extern const int cmdstruct$$Limit; commend_def *start=(commend_def *)&cmdstruct$$Base; commend_def *end=(commend_def *)&cmdstruct$$Limit; -#else +#elif defined (__GNUC__) extern const int __start_cmdstruct; extern const int __stop_cmdstruct; commend_def *start=(commend_def *)&__start_cmdstruct; diff --git a/source/task/prot_uc.c b/source/task/prot_uc.c index 1170691..229fb67 100644 --- a/source/task/prot_uc.c +++ b/source/task/prot_uc.c @@ -140,7 +140,7 @@ static array_def *protu_try_decode(protu_def *p,array_def *data) extern const int codecstruct$$Limit; codec_item *start=(codec_item *)&codecstruct$$Base; codec_item *end=(codec_item *)&codecstruct$$Limit; -#else +#elif defined (__GNUC__) extern const int __start_codecstruct; extern const int __stop_codecstruct; codec_item *start=(codec_item *)&__start_codecstruct; diff --git a/source/task/transmit.c b/source/task/transmit.c index fd001fa..aae7d71 100644 --- a/source/task/transmit.c +++ b/source/task/transmit.c @@ -129,7 +129,7 @@ static ucport_item *cmd_find(const char *codec_name,uint8_t cmd) extern const int transtruct$$Limit; ucport_item *start=(ucport_item *)&transtruct$$Base; ucport_item *end=(ucport_item *)&transtruct$$Limit; -#else +#elif defined (__GNUC__) extern const int __start_transtruct; extern const int __stop_transtruct; ucport_item *start=(ucport_item *)&__start_transtruct;