blob: cf7ebd78162d108d90aed12c69e3e8d347388cb3 [file] [log] [blame]
[email protected]6e680cf2012-05-16 15:23:301// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]f53121d2011-03-22 22:11:082// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]0bea7252011-08-05 15:34:005#ifndef BASE_BASE_EXPORT_H_
6#define BASE_BASE_EXPORT_H_
[email protected]f53121d2011-03-22 22:11:087
[email protected]63e39a282011-07-13 20:41:288#if defined(COMPONENT_BUILD)
[email protected]91d91fa2011-04-29 20:45:229#if defined(WIN32)
[email protected]84ea2d02011-06-30 23:51:2410
[email protected]9493ee95c2011-03-28 23:48:4411#if defined(BASE_IMPLEMENTATION)
[email protected]0bea7252011-08-05 15:34:0012#define BASE_EXPORT __declspec(dllexport)
[email protected]f53121d2011-03-22 22:11:0813#else
[email protected]0bea7252011-08-05 15:34:0014#define BASE_EXPORT __declspec(dllimport)
[email protected]9493ee95c2011-03-28 23:48:4415#endif // defined(BASE_IMPLEMENTATION)
[email protected]84ea2d02011-06-30 23:51:2416
17#else // defined(WIN32)
[email protected]b3878642012-05-15 15:04:3218#if defined(BASE_IMPLEMENTATION)
[email protected]0bea7252011-08-05 15:34:0019#define BASE_EXPORT __attribute__((visibility("default")))
[email protected]b3878642012-05-15 15:04:3220#else
21#define BASE_EXPORT
[email protected]6e680cf2012-05-16 15:23:3022#endif // defined(BASE_IMPLEMENTATION)
[email protected]84ea2d02011-06-30 23:51:2423#endif
24
[email protected]63e39a282011-07-13 20:41:2825#else // defined(COMPONENT_BUILD)
[email protected]0bea7252011-08-05 15:34:0026#define BASE_EXPORT
[email protected]f53121d2011-03-22 22:11:0827#endif
28
[email protected]0bea7252011-08-05 15:34:0029#endif // BASE_BASE_EXPORT_H_