blob: 35d6a1ba26eaa409c79c63eaea78e823affa7823 [file] [log] [blame]
[email protected]edfb27692014-04-04 21:56:481// 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]31acf3ef2014-05-12 19:59:165#ifndef SANDBOX_SANDBOX_EXPORT_H_
6#define SANDBOX_SANDBOX_EXPORT_H_
[email protected]edfb27692014-04-04 21:56:487
[email protected]31acf3ef2014-05-12 19:59:168#if defined(WIN32)
[email protected]4c3e4fc2014-05-14 00:27:539#error "sandbox_export.h does not support WIN32."
10#endif
[email protected]31acf3ef2014-05-12 19:59:1611
[email protected]4c3e4fc2014-05-14 00:27:5312#if defined(COMPONENT_BUILD)
[email protected]edfb27692014-04-04 21:56:4813
14#if defined(SANDBOX_IMPLEMENTATION)
15#define SANDBOX_EXPORT __attribute__((visibility("default")))
[email protected]edfb27692014-04-04 21:56:4816#else
17#define SANDBOX_EXPORT
[email protected]edfb27692014-04-04 21:56:4818#endif // defined(SANDBOX_IMPLEMENTATION)
19
20#else // defined(COMPONENT_BUILD)
[email protected]31acf3ef2014-05-12 19:59:1621
[email protected]edfb27692014-04-04 21:56:4822#define SANDBOX_EXPORT
[email protected]31acf3ef2014-05-12 19:59:1623
[email protected]edfb27692014-04-04 21:56:4824#endif // defined(COMPONENT_BUILD)
25
[email protected]31acf3ef2014-05-12 19:59:1626#endif // SANDBOX_SANDBOX_EXPORT_H_