argpar: sync with upstream - adjust to iterator API
[lttng-tools.git] / src / common / macros.h
index af9cb7e19bca6ac8eb632e2a5b6941d04aff285c..6ac24fa01157b79cbf1debc58fbcb49438288af2 100644 (file)
@@ -101,6 +101,13 @@ void *zmalloc(size_t len)
        _Pragma("GCC diagnostic ignored \"-Wformat-nonliteral\"")
 #endif
 
+/* Used to make specific C++ functions to C code. */
+#ifdef __cplusplus
+#define C_LINKAGE extern "C"
+#else
+#define C_LINKAGE
+#endif
+
 /*
  * lttng_strncpy returns 0 on success, or nonzero on failure.
  * It checks that the @src string fits into @dst_len before performing
This page took 0.023224 seconds and 4 git commands to generate.