File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff line change 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__ )
2424typedef signed long off_t ;
2525typedef int mode_t ;
2626#endif
Original file line number Diff line number Diff line change @@ -566,7 +566,7 @@ rt_size_t rt_strlen(const char *src);
566566#endif /*RT_KSERVICE_USING_STDLIB*/
567567
568568char * rt_strdup (const char * s );
569- #if defined( __CC_ARM ) || defined( __CLANG_ARM )
569+ #ifdef __ARMCC_VERSION
570570/* lack strdup interface */
571571char * strdup (const char * str );
572572#endif
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ void rt_application_init(void);
134134void rt_hw_board_init (void );
135135int rtthread_startup (void );
136136
137- #if defined( __CC_ARM ) || defined( __CLANG_ARM )
137+ #ifdef __ARMCC_VERSION
138138extern int $Super$$main (void );
139139/* re-define main function */
140140int $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. */
Original file line number Diff line number Diff line change @@ -532,7 +532,7 @@ char *rt_strdup(const char *s)
532532 return tmp ;
533533}
534534RTM_EXPORT (rt_strdup );
535- #if defined( __CC_ARM ) || defined( __CLANG_ARM )
535+ #ifdef __ARMCC_VERSION
536536char * strdup (const char * s ) __attribute__((alias ("rt_strdup" )));
537537#endif
538538#endif /* RT_USING_HEAP */
You can’t perform that action at this time.
0 commit comments