根据预处理器区分函数 #ifdef __cplusplus extern "C" { #endif void funA(); void funB(); void funC(); #ifdef __cplusplus } #endif