diff --git a/common/comtypes.h b/common/comtypes.h index 1d7407f04..bef02f64d 100644 --- a/common/comtypes.h +++ b/common/comtypes.h @@ -23,6 +23,22 @@ #include "xptypes.h" +#ifndef EXTERN_C_START +# ifdef CPLUS +# define EXTERN_C_START extern "C" { +# else +# define EXTERN_C_START +# endif +#endif + +#ifndef EXTERN_C_END +# ifdef CPLUS +# define EXTERN_C_END } +# else +# define EXTERN_C_END +# endif +#endif + typedef struct XP_Rect { XP_S16 left; XP_S16 top;