将defined(__CC_ARM) || defined(__CLANG_ARM) 改为 ifdef __ARMCC_VERSION

This commit is contained in:
Meco Man
2021-06-13 17:36:42 +08:00
parent b24447a60a
commit 921e606426
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ typedef unsigned long sigset_t;
#include <signal.h>
#if defined(__CC_ARM) || defined(__CLANG_ARM)
#ifdef __ARMCC_VERSION
#define SIGHUP 1
/* #define SIGINT 2 */
+1 -1
View File
@@ -22,7 +22,7 @@
#include "libc/libc_stdio.h"
#ifndef RT_USING_LIBC
#if defined(__CC_ARM) || defined(__CLANG_ARM) || defined(__IAR_SYSTEMS_ICC__)
#if defined(__ARMCC_VERSION) || defined(__IAR_SYSTEMS_ICC__)
typedef signed long off_t;
typedef int mode_t;
#endif
+1 -1
View File
@@ -567,7 +567,7 @@ rt_size_t rt_strlen(const char *src);
#endif /*RT_KSERVICE_USING_STDLIB*/
char *rt_strdup(const char *s);
#if defined(__CC_ARM) || defined(__CLANG_ARM)
#ifdef __ARMCC_VERSION
/* lack strdup interface */
char* strdup(const char* str);
#endif