浏览代码

[bsp]x86:fix compile error when use bsp.h in c++

陈豪 | Jacob Chen 11 年之前
父节点
当前提交
d642d915eb
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      bsp/x86/drivers/include/bsp.h

+ 4 - 0
bsp/x86/drivers/include/bsp.h

@@ -16,6 +16,10 @@
 
 #include <i386.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+c
 /*******************************************************************/
 /*  Timer Register  */
 /*******************************************************************/