驱动开发中,在C中使用C++的方法

来源:互联网 发布:乔任梁网络暴力事件 编辑:程序博客网 时间:2024/05/21 06:36

我们在做驱动开发的时候一般会在c文件里面添加这个
#ifdef   __cplusplus
extern "C"{
#endif

...............

#ifdef   __cplusplus
}
#endif

用来支持c++

原创粉丝点击