diff options
Diffstat (limited to 'lib/mlag.h')
-rw-r--r-- | lib/mlag.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/mlag.h b/lib/mlag.h index 73725ca3f..2b904d44f 100644 --- a/lib/mlag.h +++ b/lib/mlag.h @@ -22,6 +22,10 @@ #ifndef __MLAG_H__ #define __MLAG_H__ +#ifdef __cplusplus +extern "C" { +#endif + enum mlag_role { MLAG_ROLE_NONE, MLAG_ROLE_PRIMARY, @@ -29,4 +33,9 @@ enum mlag_role { }; extern char *mlag_role2str(enum mlag_role role, char *buf, size_t size); + +#ifdef __cplusplus +} +#endif + #endif |