소스 검색

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

陈豪 | Jacob Chen 10 년 전
부모
커밋
6868130cfd
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      bsp/x86/drivers/include/i386.h

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

@@ -105,4 +105,8 @@ struct Pseudodesc {
 #define 	STS_IG32 			0xe		// 32-bit Interrupt Gate
 #define 	STS_TG32 			0xf		// 32-bit Trap Gate
 
+#ifdef __cplusplus
+ }
+#endif
+
 #endif