以前一直手写
#ifdef __cplusplus
extern "C" {
#endif
现在发现 Linux 系统头文件都用 __BEGIN_DECLS 、 __END_DECLS
这个只需要 #include <sys/cdefs.h> 即可
下面是我的其他博客:
博客园,写一些工作和学习的笔记: http://www.cnblogs.com/peon/
博客堂,开发方面的一些文章:http://blog.joycode.com/peon/
流媒体博客,流媒体方面的一些文章:http://blog.lmtw.com/b/peon/