Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 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 | |
| 5 #ifndef CONTENT_COMMON_CONTENT_API_H_ | |
|
darin (slow to review)
2011/08/16 17:22:27
nit: please fix the include guard
| |
| 6 #define CONTENT_COMMON_CONTENT_API_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 // Defines CONTENT_EXPORT so that funtionality implemented by the content module | |
| 10 // 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
| |
| 11 #if defined(COMPONENT_BUILD) | |
| 12 #if defined(WIN32) | |
| 13 | |
| 14 #if defined(CONTENT_IMPLEMENTATION) | |
| 15 #define CONTENT_EXPORT __declspec(dllexport) | |
| 16 #else | |
| 17 #define CONTENT_EXPORT __declspec(dllimport) | |
| 18 #endif // defined(CONTENT_IMPLEMENTATION) | |
| 19 | |
| 20 #else // defined(WIN32) | |
| 21 #define CONTENT_EXPORT __attribute__((visibility("default")) | |
| 22 #endif | |
| 23 | |
| 24 #else // defined(COMPONENT_BUILD) | |
| 25 #define CONTENT_EXPORT | |
| 26 #endif | |
| 27 | |
| 28 #endif // CONTENT_COMMON_CONTENT_API_H_ | |
| OLD | NEW |