From 232005abbc32dfaf8498ef8ee9c15e4f30d1e7e7 Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Thu, 23 May 2013 06:58:45 +0000 Subject: 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 --- url/url_export.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 url/url_export.h (limited to 'url/url_export.h') 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_ -- cgit v1.1