Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Side by Side Diff: sync/base/sync_export.h

Issue 10700180: [Sync] Add sync_export.h (Step 1 for componentizing sync) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/base/DEPS ('k') | sync/internal_api/public/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « sync/base/DEPS ('k') | sync/internal_api/public/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698