本帖最后由 单飞 于 2016-7-30 12:42 编辑
如题,移植中间件程序时遇到了重名和重定义现象,想问问大家都是怎么处理的。
在移植FreeRTOS、FAT_FS和FreeModbus时,
1、port文件出现了重名,在FreeRTOS和FreeModbus都存在
2、重定义,FAT_FS的integer.h和FreeModbus的port.h
重定义变量:
typedef unsigned char UCHAR;
typedef char CHAR;
typedef uint16_t USHORT;
typedef int16_t SHORT;
typedef uint32_t ULONG;
typedef int32_t LONG;
一般移植中间件是不会轻易动原文件的,想问问大家是怎么处理的。
一周热门 更多>