13551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved.
23551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
33551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)// found in the LICENSE file.
43551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)
53551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)#ifndef COMPONENTS_POLICY_POLICY_EXPORT_H_
63551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)#define COMPONENTS_POLICY_POLICY_EXPORT_H_
73551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)
83551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)#if defined(COMPONENT_BUILD)
95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
103551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)#if defined(WIN32)
113551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)
123551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)#if defined(POLICY_COMPONENT_IMPLEMENTATION)
133551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)#define POLICY_EXPORT __declspec(dllexport)
143551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)#else
153551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)#define POLICY_EXPORT __declspec(dllimport)
165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#endif  // defined(POLICY_COMPONENT_IMPLEMENTATION)
173551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)
183551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)#else  // defined(WIN32)
195d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
203551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)#if defined(POLICY_COMPONENT_IMPLEMENTATION)
213551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)#define POLICY_EXPORT __attribute__((visibility("default")))
223551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)#else
233551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)#define POLICY_EXPORT
245d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#endif  // defined(POLICY_COMPONENT_IMPLEMENTATION)
255d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
265d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#endif  // defined(WIN32)
273551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)
283551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)#else  // defined(COMPONENT_BUILD)
295d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
303551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)#define POLICY_EXPORT
315d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
325d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#endif  // defined(COMPONENT_BUILD)
333551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)
343551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)#endif  // COMPONENTS_POLICY_POLICY_EXPORT_H_
35