OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 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 SYNC_SYNC_EXPORT_H_ | |
6 #define SYNC_SYNC_EXPORT_H_ | |
7 | |
8 #if defined(COMPONENT_BUILD) | |
9 #if defined(WIN32) | |
10 | |
11 // TODO(skym): Remove SYNC_EXPORT_PRIVATE, see crbug/554242. | |
12 | |
13 #if defined(SYNC_IMPLEMENTATION) | |
14 #define SYNC_EXPORT __declspec(dllexport) | |
15 #define SYNC_EXPORT_PRIVATE __declspec(dllexport) | |
16 #elif defined(SYNC_TEST) | |
17 #define SYNC_EXPORT __declspec(dllimport) | |
18 #define SYNC_EXPORT_PRIVATE __declspec(dllimport) | |
19 #else | |
20 #define SYNC_EXPORT __declspec(dllimport) | |
21 #define SYNC_EXPORT_PRIVATE | |
22 #endif // defined(SYNC_IMPLEMENTATION) | |
23 | |
24 #else // defined(WIN32) | |
25 #if defined(SYNC_IMPLEMENTATION) | |
26 #define SYNC_EXPORT __attribute__((visibility("default"))) | |
27 #define SYNC_EXPORT_PRIVATE __attribute__((visibility("default"))) | |
28 #elif defined(SYNC_TEST) | |
29 #define SYNC_EXPORT | |
30 #define SYNC_EXPORT_PRIVATE __attribute__((visibility("default"))) | |
31 #else | |
32 #define SYNC_EXPORT | |
33 #define SYNC_EXPORT_PRIVATE | |
34 #endif // defined(SYNC_IMPLEMENTATION) | |
35 #endif | |
36 | |
37 #else // defined(COMPONENT_BUILD) | |
38 #define SYNC_EXPORT | |
39 #define SYNC_EXPORT_PRIVATE | |
40 #endif | |
41 | |
42 #endif // SYNC_SYNC_EXPORT_H_ | |
OLD | NEW |