From: Florian Forster Date: Sat, 2 Dec 2023 21:41:28 +0000 (+0100) Subject: write_open_telemetry plugin: Wrap headers with `extern "C"`. X-Git-Tag: 6.0.0-rc0~17^2~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8348a5609717738855815b91a5960747ee717133;p=thirdparty%2Fcollectd.git write_open_telemetry plugin: Wrap headers with `extern "C"`. This is required for linking correctly. --- diff --git a/src/write_open_telemetry.cc b/src/write_open_telemetry.cc index c45f82d94..f26f37af1 100644 --- a/src/write_open_telemetry.cc +++ b/src/write_open_telemetry.cc @@ -35,6 +35,7 @@ * */ +extern "C" { #include "collectd.h" #include "plugin.h" @@ -46,6 +47,7 @@ #include "utils_complain.h" #include +} #ifndef OT_DEFAULT_HOST #define OT_DEFAULT_HOST "localhost"