Check for C++11 when building C++ probe providers
[lttng-ust.git] / include / lttng / tracepoint.h
index 0b77d5512e24fe14fbda11d196a880d78855f223..17fa2a0c68ef884857cc6dfa5066172e425d2b0d 100644 (file)
 #include <lttng/ust-tracer.h>
 #include <lttng/ust-api-compat.h>
 
+#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
This page took 0.023413 seconds and 4 git commands to generate.