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