| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WebExport_h | |
| 6 #define WebExport_h | |
| 7 | |
| 8 #include "wtf/Compiler.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 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). | |
| 14 | |
| 15 #if defined(COMPONENT_BUILD) | |
| 16 #if defined(WIN32) | |
| 17 #if BLINK_WEB_IMPLEMENTATION | |
| 18 #define WEB_EXPORT __declspec(dllexport) | |
| 19 #else | |
| 20 #define WEB_EXPORT __declspec(dllimport) | |
| 21 #endif // BLINK_WEB_IMPLEMENTATION | |
| 22 #else // defined(WIN32) | |
| 23 #define WEB_EXPORT __attribute__((visibility("default"))) | |
| 24 #endif | |
| 25 #else // defined(COMPONENT_BUILD) | |
| 26 #define WEB_EXPORT | |
| 27 #endif | |
| 28 | |
| 29 } // namespace blink | |
| 30 | |
| 31 #endif // WebExport_h | |
| OLD | NEW |