blob: de3ec26561bf347aac791ffac9bfbfe027ecd8f9 [file] [log] [blame]
rvargas@google.com7a976cf2011-03-23 07:11:08 +09001// Copyright (c) 2011 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
darin@chromium.orge585bed2011-08-06 00:34:00 +09005#ifndef BASE_BASE_EXPORT_H_
6#define BASE_BASE_EXPORT_H_
rvargas@google.com7a976cf2011-03-23 07:11:08 +09007#pragma once
8
darin@chromium.org86d9f942011-07-14 05:41:28 +09009#if defined(COMPONENT_BUILD)
evan@chromium.org75d1cb32011-04-30 05:45:22 +090010#if defined(WIN32)
rvargas@google.comd8b28f52011-07-01 08:51:24 +090011
rvargas@google.comc3b65182011-03-29 08:48:44 +090012#if defined(BASE_IMPLEMENTATION)
darin@chromium.orge585bed2011-08-06 00:34:00 +090013#define BASE_EXPORT __declspec(dllexport)
rvargas@google.com7a976cf2011-03-23 07:11:08 +090014#else
darin@chromium.orge585bed2011-08-06 00:34:00 +090015#define BASE_EXPORT __declspec(dllimport)
rvargas@google.comc3b65182011-03-29 08:48:44 +090016#endif // defined(BASE_IMPLEMENTATION)
rvargas@google.comd8b28f52011-07-01 08:51:24 +090017
18#else // defined(WIN32)
darin@chromium.orge585bed2011-08-06 00:34:00 +090019#define BASE_EXPORT __attribute__((visibility("default")))
rvargas@google.comd8b28f52011-07-01 08:51:24 +090020#endif
21
darin@chromium.org86d9f942011-07-14 05:41:28 +090022#else // defined(COMPONENT_BUILD)
darin@chromium.orge585bed2011-08-06 00:34:00 +090023#define BASE_EXPORT
rvargas@google.com7a976cf2011-03-23 07:11:08 +090024#endif
25
darin@chromium.orge585bed2011-08-06 00:34:00 +090026#endif // BASE_BASE_EXPORT_H_