[email protected] | edfb2769 | 2014-04-04 21:56:48 | [diff] [blame] | 1 | // Copyright 2014 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 | |||||
[email protected] | 31acf3ef | 2014-05-12 19:59:16 | [diff] [blame] | 5 | #ifndef SANDBOX_SANDBOX_EXPORT_H_ |
6 | #define SANDBOX_SANDBOX_EXPORT_H_ | ||||
[email protected] | edfb2769 | 2014-04-04 21:56:48 | [diff] [blame] | 7 | |
[email protected] | 31acf3ef | 2014-05-12 19:59:16 | [diff] [blame] | 8 | #if defined(WIN32) |
[email protected] | 4c3e4fc | 2014-05-14 00:27:53 | [diff] [blame] | 9 | #error "sandbox_export.h does not support WIN32." |
10 | #endif | ||||
[email protected] | 31acf3ef | 2014-05-12 19:59:16 | [diff] [blame] | 11 | |
[email protected] | 4c3e4fc | 2014-05-14 00:27:53 | [diff] [blame] | 12 | #if defined(COMPONENT_BUILD) |
[email protected] | edfb2769 | 2014-04-04 21:56:48 | [diff] [blame] | 13 | |
14 | #if defined(SANDBOX_IMPLEMENTATION) | ||||
15 | #define SANDBOX_EXPORT __attribute__((visibility("default"))) | ||||
16 | #define SANDBOX_EXPORT_PRIVATE __attribute__((visibility("default"))) | ||||
17 | #else | ||||
18 | #define SANDBOX_EXPORT | ||||
19 | #define SANDBOX_EXPORT_PRIVATE | ||||
20 | #endif // defined(SANDBOX_IMPLEMENTATION) | ||||
21 | |||||
22 | #else // defined(COMPONENT_BUILD) | ||||
[email protected] | 31acf3ef | 2014-05-12 19:59:16 | [diff] [blame] | 23 | |
[email protected] | edfb2769 | 2014-04-04 21:56:48 | [diff] [blame] | 24 | #define SANDBOX_EXPORT |
25 | #define SANDBOX_EXPORT_PRIVATE | ||||
[email protected] | 31acf3ef | 2014-05-12 19:59:16 | [diff] [blame] | 26 | |
[email protected] | edfb2769 | 2014-04-04 21:56:48 | [diff] [blame] | 27 | #endif // defined(COMPONENT_BUILD) |
28 | |||||
[email protected] | 31acf3ef | 2014-05-12 19:59:16 | [diff] [blame] | 29 | #endif // SANDBOX_SANDBOX_EXPORT_H_ |