1、参考
2、举例(优化)
a.h(芯片差异文件):
typedef struct my_time_t
{
int hour, minute, second;
};
b.h(xxx_struct_rename.h common文件)
struct my_time_t;
typedef struct my_time_t MY_TIME;
main.cpp
#include "b.h"
void func(MY_TIME* mt) {}
int main()
{
MY_TIME mt;
func(&mt);
return 0;
}