Browse Source

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

陈豪 | Jacob Chen 10 years ago
parent
commit
6868130cfd
1 changed files with 4 additions and 0 deletions
  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