rvargas@google.com | 7a976cf | 2011-03-23 07:11:08 +0900 | [diff] [blame] | 1 | // 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.org | e585bed | 2011-08-06 00:34:00 +0900 | [diff] [blame] | 5 | #ifndef BASE_BASE_EXPORT_H_ |
| 6 | #define BASE_BASE_EXPORT_H_ |
rvargas@google.com | 7a976cf | 2011-03-23 07:11:08 +0900 | [diff] [blame] | 7 | #pragma once |
| 8 | |
darin@chromium.org | 86d9f94 | 2011-07-14 05:41:28 +0900 | [diff] [blame] | 9 | #if defined(COMPONENT_BUILD) |
evan@chromium.org | 75d1cb3 | 2011-04-30 05:45:22 +0900 | [diff] [blame] | 10 | #if defined(WIN32) |
rvargas@google.com | d8b28f5 | 2011-07-01 08:51:24 +0900 | [diff] [blame] | 11 | |
rvargas@google.com | c3b6518 | 2011-03-29 08:48:44 +0900 | [diff] [blame] | 12 | #if defined(BASE_IMPLEMENTATION) |
darin@chromium.org | e585bed | 2011-08-06 00:34:00 +0900 | [diff] [blame] | 13 | #define BASE_EXPORT __declspec(dllexport) |
rvargas@google.com | 7a976cf | 2011-03-23 07:11:08 +0900 | [diff] [blame] | 14 | #else |
darin@chromium.org | e585bed | 2011-08-06 00:34:00 +0900 | [diff] [blame] | 15 | #define BASE_EXPORT __declspec(dllimport) |
rvargas@google.com | c3b6518 | 2011-03-29 08:48:44 +0900 | [diff] [blame] | 16 | #endif // defined(BASE_IMPLEMENTATION) |
rvargas@google.com | d8b28f5 | 2011-07-01 08:51:24 +0900 | [diff] [blame] | 17 | |
| 18 | #else // defined(WIN32) |
darin@chromium.org | e585bed | 2011-08-06 00:34:00 +0900 | [diff] [blame] | 19 | #define BASE_EXPORT __attribute__((visibility("default"))) |
rvargas@google.com | d8b28f5 | 2011-07-01 08:51:24 +0900 | [diff] [blame] | 20 | #endif |
| 21 | |
darin@chromium.org | 86d9f94 | 2011-07-14 05:41:28 +0900 | [diff] [blame] | 22 | #else // defined(COMPONENT_BUILD) |
darin@chromium.org | e585bed | 2011-08-06 00:34:00 +0900 | [diff] [blame] | 23 | #define BASE_EXPORT |
rvargas@google.com | 7a976cf | 2011-03-23 07:11:08 +0900 | [diff] [blame] | 24 | #endif |
| 25 | |
darin@chromium.org | e585bed | 2011-08-06 00:34:00 +0900 | [diff] [blame] | 26 | #endif // BASE_BASE_EXPORT_H_ |