OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_APPCACHE_APPCACHE_EXPORT_H_ | 5 #ifndef WEBKIT_APPCACHE_APPCACHE_EXPORT_H_ |
6 #define WEBKIT_APPCACHE_APPCACHE_EXPORT_H_ | 6 #define WEBKIT_APPCACHE_APPCACHE_EXPORT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 // TODO(dpranke): Uncomment to enable appcache component build. | 9 #if defined(COMPONENT_BUILD) |
10 #if 0 // defined(COMPONENT_BUILD) | |
11 #if defined(WIN32) | 10 #if defined(WIN32) |
12 | 11 |
13 #if defined(APPCACHE_IMPLEMENTATION) | 12 #if defined(APPCACHE_IMPLEMENTATION) |
14 #define APPCACHE_EXPORT __declspec(dllexport) | 13 #define APPCACHE_EXPORT __declspec(dllexport) |
15 #else | 14 #else |
16 #define APPCACHE_EXPORT __declspec(dllimport) | 15 #define APPCACHE_EXPORT __declspec(dllimport) |
17 #endif // defined(APPCACHE_IMPLEMENTATION) | 16 #endif // defined(APPCACHE_IMPLEMENTATION) |
18 | 17 |
19 #else // defined(WIN32) | 18 #else // defined(WIN32) |
20 #define APPCACHE_EXPORT __attribute__((visibility("default"))) | 19 #define APPCACHE_EXPORT __attribute__((visibility("default"))) |
21 #endif | 20 #endif |
22 | 21 |
23 #else // defined(COMPONENT_BUILD) | 22 #else // defined(COMPONENT_BUILD) |
24 #define APPCACHE_EXPORT | 23 #define APPCACHE_EXPORT |
25 #endif | 24 #endif |
26 | 25 |
27 #endif // WEBKIT_APPCACHE_APPCACHE_EXPORT_H_ | 26 #endif // WEBKIT_APPCACHE_APPCACHE_EXPORT_H_ |
OLD | NEW |