15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved.
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file.
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#ifndef CONTENT_COMMON_CONTENT_EXPORT_H_
65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#define CONTENT_COMMON_CONTENT_EXPORT_H_
75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(COMPONENT_BUILD) && !defined(COMPILE_CONTENT_STATICALLY)
95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(WIN32)
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(CONTENT_IMPLEMENTATION)
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#define CONTENT_EXPORT __declspec(dllexport)
135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#else
145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#define CONTENT_EXPORT __declspec(dllimport)
155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif  // defined(CONTENT_IMPLEMENTATION)
165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#else // defined(WIN32)
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(CONTENT_IMPLEMENTATION)
195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#define CONTENT_EXPORT __attribute__((visibility("default")))
205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#else
215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#define CONTENT_EXPORT
225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#else // defined(COMPONENT_BUILD)
265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#define CONTENT_EXPORT
275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif  // CONTENT_COMMON_CONTENT_EXPORT_H_
30