X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fargpar%2Fargpar.h;h=4bfc51d2b3b395b9968b3ae163d8dc9d05891915;hb=48a4000561343808724f7cb5fa8c131877489ccd;hp=43dbd0d56fc1bad4be1f7a8f67c56d53c66c8f33;hpb=4624dad0d79b63be45c5c6d7eb2920ba09746f06;p=lttng-tools.git diff --git a/src/common/argpar/argpar.h b/src/common/argpar/argpar.h index 43dbd0d56..4bfc51d2b 100644 --- a/src/common/argpar/argpar.h +++ b/src/common/argpar/argpar.h @@ -9,6 +9,10 @@ #include +#if defined(__cplusplus) +extern "C" { +#endif + /* * argpar is a library that provides facilities for argument parsing. * @@ -310,5 +314,8 @@ void argpar_item_destroy(struct argpar_item *item); _item = NULL; \ } +#if defined(__cplusplus) +} +#endif #endif /* BABELTRACE_ARGPAR_H */