summaryrefslogtreecommitdiff
path: root/chromium/components/viz/common/viz_common_export.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/viz/common/viz_common_export.h')
-rw-r--r--chromium/components/viz/common/viz_common_export.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/chromium/components/viz/common/viz_common_export.h b/chromium/components/viz/common/viz_common_export.h
new file mode 100644
index 00000000000..9e58b1327c9
--- /dev/null
+++ b/chromium/components/viz/common/viz_common_export.h
@@ -0,0 +1,29 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_VIZ_COMMON_VIZ_COMMON_EXPORT_H_
+#define COMPONENTS_VIZ_COMMON_VIZ_COMMON_EXPORT_H_
+
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#if defined(VIZ_COMMON_IMPLEMENTATION)
+#define VIZ_COMMON_EXPORT __declspec(dllexport)
+#else
+#define VIZ_COMMON_EXPORT __declspec(dllimport)
+#endif // defined(VIZ_COMMON_IMPLEMENTATION)
+
+#else // defined(WIN32)
+#if defined(VIZ_COMMON_IMPLEMENTATION)
+#define VIZ_COMMON_EXPORT __attribute__((visibility("default")))
+#else
+#define VIZ_COMMON_EXPORT
+#endif
+#endif
+
+#else // defined(COMPONENT_BUILD)
+#define VIZ_COMMON_EXPORT
+#endif
+
+#endif // COMPONENTS_VIZ_COMMON_VIZ_COMMON_EXPORT_H_