[email protected] | 6e680cf | 2012-05-16 15:23:30 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | f53121d | 2011-03-22 22:11:08 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | 0bea725 | 2011-08-05 15:34:00 | [diff] [blame] | 5 | #ifndef BASE_BASE_EXPORT_H_ |
6 | #define BASE_BASE_EXPORT_H_ | ||||
[email protected] | f53121d | 2011-03-22 22:11:08 | [diff] [blame] | 7 | |
[email protected] | 63e39a28 | 2011-07-13 20:41:28 | [diff] [blame] | 8 | #if defined(COMPONENT_BUILD) |
[email protected] | 91d91fa | 2011-04-29 20:45:22 | [diff] [blame] | 9 | #if defined(WIN32) |
[email protected] | 84ea2d0 | 2011-06-30 23:51:24 | [diff] [blame] | 10 | |
[email protected] | 9493ee95c | 2011-03-28 23:48:44 | [diff] [blame] | 11 | #if defined(BASE_IMPLEMENTATION) |
[email protected] | 0bea725 | 2011-08-05 15:34:00 | [diff] [blame] | 12 | #define BASE_EXPORT __declspec(dllexport) |
[email protected] | f53121d | 2011-03-22 22:11:08 | [diff] [blame] | 13 | #else |
[email protected] | 0bea725 | 2011-08-05 15:34:00 | [diff] [blame] | 14 | #define BASE_EXPORT __declspec(dllimport) |
[email protected] | 9493ee95c | 2011-03-28 23:48:44 | [diff] [blame] | 15 | #endif // defined(BASE_IMPLEMENTATION) |
[email protected] | 84ea2d0 | 2011-06-30 23:51:24 | [diff] [blame] | 16 | |
17 | #else // defined(WIN32) | ||||
[email protected] | b387864 | 2012-05-15 15:04:32 | [diff] [blame] | 18 | #if defined(BASE_IMPLEMENTATION) |
[email protected] | 0bea725 | 2011-08-05 15:34:00 | [diff] [blame] | 19 | #define BASE_EXPORT __attribute__((visibility("default"))) |
[email protected] | b387864 | 2012-05-15 15:04:32 | [diff] [blame] | 20 | #else |
21 | #define BASE_EXPORT | ||||
[email protected] | 6e680cf | 2012-05-16 15:23:30 | [diff] [blame] | 22 | #endif // defined(BASE_IMPLEMENTATION) |
[email protected] | 84ea2d0 | 2011-06-30 23:51:24 | [diff] [blame] | 23 | #endif |
24 | |||||
[email protected] | 63e39a28 | 2011-07-13 20:41:28 | [diff] [blame] | 25 | #else // defined(COMPONENT_BUILD) |
[email protected] | 0bea725 | 2011-08-05 15:34:00 | [diff] [blame] | 26 | #define BASE_EXPORT |
[email protected] | f53121d | 2011-03-22 22:11:08 | [diff] [blame] | 27 | #endif |
28 | |||||
[email protected] | 0bea725 | 2011-08-05 15:34:00 | [diff] [blame] | 29 | #endif // BASE_BASE_EXPORT_H_ |