diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-23 06:58:45 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-23 06:58:45 +0000 |
commit | 232005abbc32dfaf8498ef8ee9c15e4f30d1e7e7 (patch) | |
tree | 90aca67984c699badc26fb4553651a6c8b272810 /url/url_export.h | |
parent | bf911527b7e20eecef2f24ab3bfe05b723f585c1 (diff) | |
download | chromium_src-232005abbc32dfaf8498ef8ee9c15e4f30d1e7e7.zip chromium_src-232005abbc32dfaf8498ef8ee9c15e4f30d1e7e7.tar.gz chromium_src-232005abbc32dfaf8498ef8ee9c15e4f30d1e7e7.tar.bz2 |
Make the copy of GURL in src/url buildable as a component build.
BUG=229660
Review URL: https://chromiumcodereview.appspot.com/15255009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201723 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'url/url_export.h')
-rw-r--r-- | url/url_export.h | 33 |
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..9766ed5 --- /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 + +#endif // URL_URL_EXPORT_H_ |