X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fargpar%2Fargpar.h;h=4bfc51d2b3b395b9968b3ae163d8dc9d05891915;hp=43dbd0d56fc1bad4be1f7a8f67c56d53c66c8f33;hb=48a4000561343808724f7cb5fa8c131877489ccd;hpb=81663f073dbfb4b61c06a0ceb8ca33c4fc41b1c5 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 */