Skip to content

Commit 8a23d0c

Browse files
authored
Merge pull request #4796 from mysterywolf/__CLANG_ARM
将defined(__CC_ARM) || defined(__CLANG_ARM) 改为 ifdef __ARMCC_VERSION
2 parents 30b9f7e + 921e606 commit 8a23d0c

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

components/finsh/shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ int finsh_system_init(void)
817817
rt_thread_t tid;
818818

819819
#ifdef FINSH_USING_SYMTAB
820-
#if defined(__CC_ARM) || defined(__CLANG_ARM) /* ARM C Compiler */
820+
#ifdef __ARMCC_VERSION /* ARM C Compiler */
821821
extern const int FSymTab$$Base;
822822
extern const int FSymTab$$Limit;
823823
extern const int VSymTab$$Base;

include/libc/libc_signal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ typedef unsigned long sigset_t;
7171

7272
#include <signal.h>
7373

74-
#if defined(__CC_ARM) || defined(__CLANG_ARM)
74+
#ifdef __ARMCC_VERSION
7575

7676
#define SIGHUP 1
7777
/* #define SIGINT 2 */

include/rtlibc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "libc/libc_fdset.h"
2121

2222
#ifndef RT_USING_LIBC
23-
#if defined(__CC_ARM) || defined(__CLANG_ARM) || defined(__IAR_SYSTEMS_ICC__)
23+
#if defined(__ARMCC_VERSION) || defined(__IAR_SYSTEMS_ICC__)
2424
typedef signed long off_t;
2525
typedef int mode_t;
2626
#endif

include/rtthread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ rt_size_t rt_strlen(const char *src);
566566
#endif /*RT_KSERVICE_USING_STDLIB*/
567567

568568
char *rt_strdup(const char *s);
569-
#if defined(__CC_ARM) || defined(__CLANG_ARM)
569+
#ifdef __ARMCC_VERSION
570570
/* lack strdup interface */
571571
char* strdup(const char* str);
572572
#endif

src/components.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ void rt_application_init(void);
134134
void rt_hw_board_init(void);
135135
int rtthread_startup(void);
136136

137-
#if defined(__CC_ARM) || defined(__CLANG_ARM)
137+
#ifdef __ARMCC_VERSION
138138
extern int $Super$$main(void);
139139
/* re-define main function */
140140
int $Sub$$main(void)
@@ -183,7 +183,7 @@ void main_thread_entry(void *parameter)
183183
rt_hw_secondary_cpu_up();
184184
#endif /* RT_USING_SMP */
185185
/* invoke system main function */
186-
#if defined(__CC_ARM) || defined(__CLANG_ARM)
186+
#ifdef __ARMCC_VERSION
187187
{
188188
extern int $Super$$main(void);
189189
$Super$$main(); /* for ARMCC. */

src/kservice.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ char *rt_strdup(const char *s)
532532
return tmp;
533533
}
534534
RTM_EXPORT(rt_strdup);
535-
#if defined(__CC_ARM) || defined(__CLANG_ARM)
535+
#ifdef __ARMCC_VERSION
536536
char *strdup(const char *s) __attribute__((alias("rt_strdup")));
537537
#endif
538538
#endif /* RT_USING_HEAP */

0 commit comments

Comments
 (0)