使用C++编译器按C标准来编译C语言代码

      使用C++编译器按C标准来编译C语言代码

//防止头文件重复包含
#pragma  once
 
#ifdef __cplusplus
extern "C"
{
#endif
 
 
//需要按C标准编译的代码
 
 
#ifdef __cplusplus
}
#endif

 

posted @ 2019-03-15 11:07  NULL_ROOT  阅读(832)  评论(0编辑  收藏  举报