Chromium Code Reviews| Index: content/common/content_export.h |
| diff --git a/content/common/content_export.h b/content/common/content_export.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..357b732492acb750964a4c7b33512fa9e4be5c4f |
| --- /dev/null |
| +++ b/content/common/content_export.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_COMMON_CONTENT_API_H_ |
|
darin (slow to review)
2011/08/16 17:22:27
nit: please fix the include guard
|
| +#define CONTENT_COMMON_CONTENT_API_H_ |
| +#pragma once |
| + |
| +// Defines CONTENT_EXPORT so that funtionality implemented by the content module |
| +// can be exported to consumers. |
|
darin (slow to review)
2011/08/16 17:22:27
nit: new line after this comment block, or just de
|
| +#if defined(COMPONENT_BUILD) |
| +#if defined(WIN32) |
| + |
| +#if defined(CONTENT_IMPLEMENTATION) |
| +#define CONTENT_EXPORT __declspec(dllexport) |
| +#else |
| +#define CONTENT_EXPORT __declspec(dllimport) |
| +#endif // defined(CONTENT_IMPLEMENTATION) |
| + |
| +#else // defined(WIN32) |
| +#define CONTENT_EXPORT __attribute__((visibility("default")) |
| +#endif |
| + |
| +#else // defined(COMPONENT_BUILD) |
| +#define CONTENT_EXPORT |
| +#endif |
| + |
| +#endif // CONTENT_COMMON_CONTENT_API_H_ |