types.h 484 字节
Newer Older
B
bernard.xiong 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#ifndef __TYPES_H__
#define __TYPES_H__

#include <rtthread.h>

typedef rt_off_t 	off_t;
typedef rt_size_t 	size_t;

typedef rt_uint8_t 	u_char;
typedef rt_uint16_t u_short;
typedef rt_ubase_t 	u_int;
typedef rt_uint32_t u_long;

typedef rt_uint8_t 	u_int8_t;
typedef rt_uint16_t u_int16_t;
typedef rt_uint32_t u_int32_t;
17 18 19
typedef rt_int8_t 	int8_t;
typedef rt_int16_t  int16_t;
typedef rt_int32_t  int32_t;
B
bernard.xiong 已提交
20

21 22
typedef rt_time_t time_t;

B
bernard.xiong 已提交
23 24 25 26 27
#ifndef NULL
#define NULL RT_NULL
#endif

#endif