用ccs,程序里面有一段
#ifndef TYPES_H
#define TYPES_H
//----------------------------------------------------------------------------
// datatypes
//----------------------------------------------------------------------------
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long ulong_t;
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef signed long long_t;
typedef enum
{
false = 0,
true = 1
}bool_e;
#endif
总提示我警告
#303-D typedef name has already been declared(with same type)
我理解这个警告的意思是这个类型已经被定义过了,可是这程序里不是有#ifndef #endif吗??
求大神告知 |