求教extern "C" 的标准写法的一个疑问
//在.h文件的头上
#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */
//.h文件结束的地方
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
#ifdef __cplusplus
extern "C"
{
#endif
...
#ifdef __cplusplus
}
#endif