C and C++ call

来源:互联网 发布:php手机社区源码 编辑:程序博客网 时间:2024/05/29 17:07

1. c++ call c function

#ifdef __cplusplus
extern "C"
{
#endif

void fun1(int n);

void fun2(int n);

#ifdef __cplusplus
}
#endif