diff --git a/src/ca/cadef.h b/src/ca/cadef.h index 35e4efeaf..ec2e47bc7 100644 --- a/src/ca/cadef.h +++ b/src/ca/cadef.h @@ -22,8 +22,7 @@ * traditional C */ #ifdef __cplusplus -extern "C" { -#define CAC_ANSI_FUNC_PROTO +# define CAC_ANSI_FUNC_PROTO #endif #ifdef __STDC__ @@ -45,6 +44,10 @@ extern "C" { #include "db_access.h" #include "caeventmask.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef void *chid; typedef chid chanId; /* for when the structures field name is "chid" */ typedef long chtype;