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 // TODO(akalin): Remove '0 && ' when sync becomes a component. |
| 9 #if 0 && defined(COMPONENT_BUILD) |
| 10 #if defined(WIN32) |
| 11 |
| 12 #if defined(SYNC_IMPLEMENTATION) |
| 13 #define SYNC_EXPORT __declspec(dllexport) |
| 14 #define SYNC_EXPORT_PRIVATE __declspec(dllexport) |
| 15 #elif defined(SYNC_TEST) |
| 16 #define SYNC_EXPORT __declspec(dllimport) |
| 17 #define SYNC_EXPORT_PRIVATE __declspec(dllimport) |
| 18 #else |
| 19 #define SYNC_EXPORT __declspec(dllimport) |
| 20 #define SYNC_EXPORT_PRIVATE |
| 21 #endif // defined(SYNC_IMPLEMENTATION) |
| 22 |
| 23 #else // defined(WIN32) |
| 24 #if defined(SYNC_IMPLEMENTATION) |
| 25 #define SYNC_EXPORT __attribute__((visibility("default"))) |
| 26 #define SYNC_EXPORT_PRIVATE __attribute__((visibility("default"))) |
| 27 #elif defined(SYNC_TEST) |
| 28 #define SYNC_EXPORT |
| 29 #define SYNC_EXPORT_PRIVATE __attribute__((visibility("default"))) |
| 30 #else |
| 31 #define SYNC_EXPORT |
| 32 #define SYNC_EXPORT_PRIVATE |
| 33 #endif // defined(SYNC_IMPLEMENTATION) |
| 34 #endif |
| 35 |
| 36 #else // defined(COMPONENT_BUILD) |
| 37 #define SYNC_EXPORT |
| 38 #define SYNC_EXPORT_PRIVATE |
| 39 #endif |
| 40 |
| 41 #endif // SYNC_SYNC_EXPORT_H_ |
OLD | NEW |