summaryrefslogtreecommitdiff
path: root/src/components.c
diff options
context:
space:
mode:
authorDavid Lin <[email protected]>2021-06-24 22:36:14 +0800
committerGitHub <[email protected]>2021-06-24 22:36:14 +0800
commit6efca1d120aa64b5345e6a0801f23c3fa0e47db4 (patch)
tree8644973a5c0d19072a19d8d7f8ebd63dfbbed408 /src/components.c
parent09b08cca8e5b8c728fb886abc866c22974527b6c (diff)
parentfcb0a47328a3178d02b3bc0a83bd9e84818e08b7 (diff)
Merge branch 'RT-Thread:master' into master
Diffstat (limited to 'src/components.c')
-rw-r--r--src/components.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components.c b/src/components.c
index d684d5e6fd..e156b783e4 100644
--- a/src/components.c
+++ b/src/components.c
@@ -134,7 +134,7 @@ void rt_application_init(void);
void rt_hw_board_init(void);
int rtthread_startup(void);
-#if defined(__CC_ARM) || defined(__CLANG_ARM)
+#ifdef __ARMCC_VERSION
extern int $Super$$main(void);
/* re-define main function */
int $Sub$$main(void)
@@ -183,7 +183,7 @@ void main_thread_entry(void *parameter)
rt_hw_secondary_cpu_up();
#endif /* RT_USING_SMP */
/* invoke system main function */
-#if defined(__CC_ARM) || defined(__CLANG_ARM)
+#ifdef __ARMCC_VERSION
{
extern int $Super$$main(void);
$Super$$main(); /* for ARMCC. */