X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2Fmacros.h;h=9014afc2c637d1b1df6eb31764c4815074ae03c3;hb=826b4673c08ce7dbb9da3426bf4f2131ae41a092;hp=718a3050ccb1b4b96b9a00cf84adeb35185bdae0;hpb=fb7ff115d1c09334777a2cca347555765f3ce172;p=babeltrace.git diff --git a/src/common/macros.h b/src/common/macros.h index 718a3050..9014afc2 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -7,6 +7,10 @@ #ifndef _BABELTRACE_INTERNAL_H #define _BABELTRACE_INTERNAL_H +#ifdef __cplusplus +extern "C" { +#endif + #define bt_max_t(type, a, b) \ ((type) (a) > (type) (b) ? (type) (a) : (type) (b)) @@ -71,4 +75,8 @@ ((void) sizeof((void) (_expr1), (void) (_expr2), \ (void) (_expr3), (void) (_expr4), (void) (_expr5), 0)) +#ifdef __cplusplus +} +#endif + #endif