summaryrefslogtreecommitdiff
path: root/chromium/components/webdata/common/webdata_export.h
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2013-08-15 21:46:11 +0200
committerZeno Albisser <zeno.albisser@digia.com>2013-08-15 21:46:11 +0200
commit679147eead574d186ebf3069647b4c23e8ccace6 (patch)
treefc247a0ac8ff119f7c8550879ebb6d3dd8d1ff69 /chromium/components/webdata/common/webdata_export.h
downloadqtwebengine-chromium-679147eead574d186ebf3069647b4c23e8ccace6.tar.gz
Initial import.
Diffstat (limited to 'chromium/components/webdata/common/webdata_export.h')
-rw-r--r--chromium/components/webdata/common/webdata_export.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/chromium/components/webdata/common/webdata_export.h b/chromium/components/webdata/common/webdata_export.h
new file mode 100644
index 00000000000..9441f191588
--- /dev/null
+++ b/chromium/components/webdata/common/webdata_export.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2013 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_WEBDATA_COMMON_WEBDATA_EXPORT_H_
+#define COMPONENTS_WEBDATA_COMMON_WEBDATA_EXPORT_H_
+
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#if defined(WEBDATA_IMPLEMENTATION)
+#define WEBDATA_EXPORT __declspec(dllexport)
+#else
+#define WEBDATA_EXPORT __declspec(dllimport)
+#endif // defined(WEBDATA_IMPLEMENTATION)
+
+#else // defined(WIN32)
+#if defined(WEBDATA_IMPLEMENTATION)
+#define WEBDATA_EXPORT __attribute__((visibility("default")))
+#else
+#define WEBDATA_EXPORT
+#endif
+#endif
+
+#else // defined(COMPONENT_BUILD)
+#define WEBDATA_EXPORT
+#endif
+
+#endif // COMPONENTS_WEBDATA_COMMON_WEBDATA_EXPORT_H_