今天遇到一个问题是:重复宏定义。想到的解决方法是使用undef取消该重复宏。

解决方法

#ifdef xxx    #undef xxx#endif

#ifndef xxx    #define xxx#endif