lib: compile liblttng-ctl as C++
[lttng-tools.git] / include / lttng / lttng-export.h
diff --git a/include/lttng/lttng-export.h b/include/lttng/lttng-export.h
new file mode 100644 (file)
index 0000000..ae3990a
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * Copyright (C) 2021 Simon Marchi <simon.marchi@efficios.com>
+ *
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
+ */
+#ifndef LTTNG_EXPORT_H
+#define LTTNG_EXPORT_H
+#if defined(_WIN32) || defined(__CYGWIN__)
+# define LTTNG_EXPORT
+#else
+# define LTTNG_EXPORT __attribute__((visibility("default")))
+#endif
+#endif
This page took 0.022863 seconds and 4 git commands to generate.