cleanup code for IAR and ARMCC compiler
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@51 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
ab5a04e05a
commit
60e88011e8
|
@ -50,6 +50,8 @@
|
|||
typedef unsigned char u_char;
|
||||
typedef unsigned short u_short;
|
||||
typedef unsigned long u_long;
|
||||
|
||||
#if !defined(__CC_ARM) && !defined(__ICCARM__)
|
||||
typedef unsigned int size_t;
|
||||
|
||||
#ifndef NULL
|
||||
|
@ -60,6 +62,9 @@ typedef unsigned int size_t;
|
|||
#define strlen rt_strlen
|
||||
#define strncpy rt_strncpy
|
||||
#define strncmp rt_strncmp
|
||||
#else
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
int strcmp (const char *s1, const char *s2);
|
||||
char *strdup(const char *s);
|
||||
|
|
Loading…
Reference in New Issue