diff --git a/bsp/x86/drivers/include/bsp.h b/bsp/x86/drivers/include/bsp.h index e14e589274..8739e185ad 100644 --- a/bsp/x86/drivers/include/bsp.h +++ b/bsp/x86/drivers/include/bsp.h @@ -16,6 +16,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /*******************************************************************/ /* Timer Register */ /*******************************************************************/ diff --git a/bsp/x86/drivers/include/i386.h b/bsp/x86/drivers/include/i386.h index 4b5a0e7bd0..fe023d754a 100644 --- a/bsp/x86/drivers/include/i386.h +++ b/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