OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 WebExport_h | 5 #ifndef WebExport_h |
6 #define WebExport_h | 6 #define WebExport_h |
7 | 7 |
8 #include "wtf/Compiler.h" | 8 #include "platform/wtf/Compiler.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 // This macro is intended to export symbols in Source/web/ which are still | 12 // This macro is intended to export symbols in Source/web/ which are still |
13 // private to Blink (for instance, because they are used in unit tests). | 13 // private to Blink (for instance, because they are used in unit tests). |
14 | 14 |
15 #if defined(COMPONENT_BUILD) | 15 #if defined(COMPONENT_BUILD) |
16 #if defined(WIN32) | 16 #if defined(WIN32) |
17 #if BLINK_WEB_IMPLEMENTATION | 17 #if BLINK_WEB_IMPLEMENTATION |
18 #define WEB_EXPORT __declspec(dllexport) | 18 #define WEB_EXPORT __declspec(dllexport) |
19 #else | 19 #else |
20 #define WEB_EXPORT __declspec(dllimport) | 20 #define WEB_EXPORT __declspec(dllimport) |
21 #endif // BLINK_WEB_IMPLEMENTATION | 21 #endif // BLINK_WEB_IMPLEMENTATION |
22 #else // defined(WIN32) | 22 #else // defined(WIN32) |
23 #define WEB_EXPORT __attribute__((visibility("default"))) | 23 #define WEB_EXPORT __attribute__((visibility("default"))) |
24 #endif | 24 #endif |
25 #else // defined(COMPONENT_BUILD) | 25 #else // defined(COMPONENT_BUILD) |
26 #define WEB_EXPORT | 26 #define WEB_EXPORT |
27 #endif | 27 #endif |
28 | 28 |
29 } // namespace blink | 29 } // namespace blink |
30 | 30 |
31 #endif // WebExport_h | 31 #endif // WebExport_h |
OLD | NEW |