summaryrefslogtreecommitdiff
path: root/src/components.c
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-06-13 17:36:42 +0800
committerMeco Man <[email protected]>2021-06-13 17:36:42 +0800
commit921e6064260f7afa80f3d10424bd49526241a3ee (patch)
tree2f3a50e2b04270a4a5ebaff895f9b6f14188e7b6 /src/components.c
parentb24447a60a6941568d58dd1ca358951674924ed2 (diff)
将defined(__CC_ARM) || defined(__CLANG_ARM) 改为 ifdef __ARMCC_VERSION
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. */