summaryrefslogtreecommitdiffstats
path: root/base/i18n/base_i18n_export.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-31 22:15:48 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-31 22:15:48 +0000
commitc743d4c75d3ea1dbe52a943514c8c152b0a5cc39 (patch)
tree64100efb5236f36d238eb42e69b0f5844f7a4e7a /base/i18n/base_i18n_export.h
parent5fc9793fc153b3be2376ebfd138ec68e75215cf8 (diff)
downloadchromium_src-c743d4c75d3ea1dbe52a943514c8c152b0a5cc39.zip
chromium_src-c743d4c75d3ea1dbe52a943514c8c152b0a5cc39.tar.gz
chromium_src-c743d4c75d3ea1dbe52a943514c8c152b0a5cc39.tar.bz2
Base: Switch base_i18n to be a separate dll (component build)
BUG=none TEST=none Review URL: http://codereview.chromium.org/7812009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99057 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/i18n/base_i18n_export.h')
-rw-r--r--base/i18n/base_i18n_export.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/base/i18n/base_i18n_export.h b/base/i18n/base_i18n_export.h
new file mode 100644
index 0000000..143f75f
--- /dev/null
+++ b/base/i18n/base_i18n_export.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2011 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 BASE_I18N_BASE_I18N_EXPORT_H_
+#define BASE_I18N_BASE_I18N_EXPORT_H_
+#pragma once
+
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#if defined(BASE_I18N_IMPLEMENTATION)
+#define BASE_I18N_EXPORT __declspec(dllexport)
+#else
+#define BASE_I18N_EXPORT __declspec(dllimport)
+#endif // defined(BASE_I18N_IMPLEMENTATION)
+
+#else // defined(WIN32)
+#define BASE_I18N_EXPORT __attribute__((visibility("default")))
+#endif
+
+#else // defined(COMPONENT_BUILD)
+#define BASE_I18N_EXPORT
+#endif
+
+#endif // BASE_I18N_BASE_I18N_EXPORT_H_