summaryrefslogtreecommitdiffstats
path: root/url/url_export.h
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-30 00:39:57 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-30 00:39:57 +0000
commit2dcec1fbb4343693721ec1b81452a93883efbc2e (patch)
treef32021cc84b1f14e46e90a978c201b536cdde61e /url/url_export.h
parent1ada567356f93581d6615f5e4d06f8c5e32e1cef (diff)
downloadchromium_src-2dcec1fbb4343693721ec1b81452a93883efbc2e.zip
chromium_src-2dcec1fbb4343693721ec1b81452a93883efbc2e.tar.gz
chromium_src-2dcec1fbb4343693721ec1b81452a93883efbc2e.tar.bz2
Make the copy of GURL in src/url buildable as a component build. (try 2)
BUG=229660 TBR=brettw Review URL: https://chromiumcodereview.appspot.com/15805003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203025 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'url/url_export.h')
-rw-r--r--url/url_export.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/url/url_export.h b/url/url_export.h
new file mode 100644
index 0000000..15ef19e
--- /dev/null
+++ b/url/url_export.h
@@ -0,0 +1,33 @@
+// Copyright 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 URL_URL_EXPORT_H_
+#define URL_URL_EXPORT_H_
+
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#if defined(URL_IMPLEMENTATION)
+#define URL_EXPORT __declspec(dllexport)
+#else
+#define URL_EXPORT __declspec(dllimport)
+#endif // defined(URL_IMPLEMENTATION)
+
+#else // !defined(WIN32)
+
+#if defined(URL_IMPLEMENTATION)
+#define URL_EXPORT __attribute__((visibility("default")))
+#else
+#define URL_EXPORT
+#endif // defined(URL_IMPLEMENTATION)
+
+#endif // defined(WIN32)
+
+#else // !defined(COMPONENT_BUILD)
+
+#define URL_EXPORT
+
+#endif // define(COMPONENT_BUILD)
+
+#endif // URL_URL_EXPORT_H_