summaryrefslogtreecommitdiffstats
path: root/include/opentracing/symbols.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:44:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:44:33 +0000
commitb196c6498d22e47bb9d0da0153068ec54eac7956 (patch)
tree1a994a492581e93224a7ee6455f5d4e9d2ec8e59 /include/opentracing/symbols.h
parentInitial commit. (diff)
downloadopentracing-cpp-81899029a20d74b243d54a8cee68b4cc4071afba.tar.xz
opentracing-cpp-81899029a20d74b243d54a8cee68b4cc4071afba.zip
Adding upstream version 1.6.0.upstream/1.6.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'include/opentracing/symbols.h')
-rw-r--r--include/opentracing/symbols.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/opentracing/symbols.h b/include/opentracing/symbols.h
new file mode 100644
index 0000000..b359ced
--- /dev/null
+++ b/include/opentracing/symbols.h
@@ -0,0 +1,34 @@
+#ifndef OPENTRACING_SYMBOLS_H
+#define OPENTRACING_SYMBOLS_H
+
+#include <opentracing/config.h>
+
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning(disable : 4251)
+#endif
+
+#ifdef _MSC_VER
+
+#define OPENTRACING_EXPORT __declspec(dllexport)
+
+// Export if this is our own source, otherwise import:
+#ifndef OPENTRACING_STATIC
+#ifdef OPENTRACING_EXPORTS
+#define OPENTRACING_API __declspec(dllexport)
+#else // OPENTRACING_STATIC
+#define OPENTRACING_API __declspec(dllimport)
+#endif // OPENTRACING_EXPORTS
+#endif // OPENTRACING_STATIC
+
+#endif // _MSC_VER
+
+#ifndef OPENTRACING_EXPORT
+#define OPENTRACING_EXPORT
+#endif
+
+#ifndef OPENTRACING_API
+#define OPENTRACING_API
+#endif
+
+#endif // OPENTRACING_SYMBOLS_H