From: Michael Jeanson Date: Wed, 8 Dec 2021 20:54:53 +0000 (-0500) Subject: Check for C++11 when building C++ probe providers X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e0ca901df9ff4742dfcaf1c8839f042760197555;p=lttng-ust.git Check for C++11 when building C++ probe providers The compiler used to build probe providers might differ from the one used to build lttng-ust, make sure that when a probe provider is built by a C++ compiler, it supports C++11. Change-Id: I2a17e923316ff87c023d8e50c53efdbe35386a21 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/include/lttng/tracepoint.h b/include/lttng/tracepoint.h index 0b77d551..17fa2a0c 100644 --- a/include/lttng/tracepoint.h +++ b/include/lttng/tracepoint.h @@ -26,6 +26,10 @@ #include #include +#if (defined(__cplusplus) && (__cplusplus <= 199711L)) +#error "C++11 support is required to build tracepoints and providers as C++" +#endif + #define LTTNG_UST_TRACEPOINT_NAME_LEN_MAX 256 #ifdef LTTNG_UST_HAVE_SDT_INTEGRATION