From d1baf1f5b52cd696e07880176eaa58e0ef04de18 Mon Sep 17 00:00:00 2001 From: betesla Date: Fri, 3 Mar 2023 15:44:45 +0800 Subject: [PATCH] [Fix]:fix at_server.c link failed when using ac6 use __ARMCC_VERSION to replace __CC_ARM --- components/net/at/src/at_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/net/at/src/at_server.c b/components/net/at/src/at_server.c index 9e5d9174b1..fe150d83f7 100644 --- a/components/net/at/src/at_server.c +++ b/components/net/at/src/at_server.c @@ -538,7 +538,7 @@ int at_server_init(void) } /* initialize the AT commands table.*/ -#if defined(__CC_ARM) /* ARM C Compiler */ +#if defined(__ARMCC_VERSION) /* ARM C Compiler */ extern const int RtAtCmdTab$$Base; extern const int RtAtCmdTab$$Limit; cmd_table = (at_cmd_t)&RtAtCmdTab$$Base;