diff options
Diffstat (limited to 'lib/imsg.h')
-rw-r--r-- | lib/imsg.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/imsg.h b/lib/imsg.h index eed7074e4..3f81b76be 100644 --- a/lib/imsg.h +++ b/lib/imsg.h @@ -21,6 +21,10 @@ #ifndef _IMSG_H_ #define _IMSG_H_ +#ifdef __cplusplus +extern "C" { +#endif + #define IBUF_READ_SIZE 65535 #define IMSG_HEADER_SIZE sizeof(struct imsg_hdr) #define MAX_IMSGSIZE 16384 @@ -108,4 +112,8 @@ void imsg_free(struct imsg *); int imsg_flush(struct imsgbuf *); void imsg_clear(struct imsgbuf *); +#ifdef __cplusplus +} +#endif + #endif |