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_ | |
6 #define CONTENT_COMMON_CONTENT_API_H_ | |
7 #pragma once | |
8 | |
9 // Defines CONTENT_API so that funtionality implemented by the content module | |
10 // can be exported to consumers, and CONTENT_TEST that allows unit tests to | |
11 // access features not intended to be used directly by real consumers. | |
12 #if defined(WIN32) && defined(CONTENT_DLL) | |
13 #if defined(CONTENT_IMPLEMENTATION) | |
14 #define CONTENT_API __declspec(dllexport) | |
15 #define CONTENT_TEST __declspec(dllexport) | |
16 #else | |
17 #define CONTENT_API __declspec(dllimport) | |
18 #define CONTENT_TEST __declspec(dllimport) | |
19 #endif // defined(CONTENT_IMPLEMENTATION) | |
20 #else | |
21 #define CONTENT_API | |
22 #define CONTENT_TEST | |
23 #endif | |
24 | |
25 #endif // CONTENT_COMMON_CONTENT_API_H_ | |
OLD | NEW |