From 4737566d4d5efaa4665470e2315cb4988d031512 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 16 Sep 2011 19:56:24 -0400 Subject: [PATCH 1/1] Complete c++ support for instrumentation Signed-off-by: Mathieu Desnoyers --- include/ust/tracepoint-event.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/ust/tracepoint-event.h b/include/ust/tracepoint-event.h index aefe506..b4bd59c 100644 --- a/include/ust/tracepoint-event.h +++ b/include/ust/tracepoint-event.h @@ -37,6 +37,10 @@ * searching for a header within your project build tree. */ +#ifdef __cplusplus +extern "C" { +#endif + #ifdef TRACEPOINT_CREATE_PROBES /* Prevent recursion */ @@ -111,3 +115,7 @@ #define TRACEPOINT_CREATE_PROBES #endif /* TRACEPOINT_CREATE_PROBES */ + +#ifdef __cplusplus +} +#endif -- 2.34.1