typedef重复定义解决方法 如果头文件sm_system.h和math.h中均包含"typedef xxxx float_t"语句,那么使用如下的头文件包含方法: #include "sm_system.h" #define float_t ms_float_t #include <math.h> #undef float_t