Typedef duplicate definition solution

Typedef duplicate definition solution

If both the header files sm_system.h and math.h contain the "typedef xxxx float_t" statement, then use the following header file include method:

#include "sm_system.h"
#define float_t ms_float_t
#include <math.h>
#undef float_t

Guess you like

Origin blog.csdn.net/weixin_44478077/article/details/131669213