| Avi Drissman | 05dfbc82 | 2022-09-13 21:25:34 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors |
| Antoine Labour | 011cf77 | 2018-01-23 00:38:39 | [diff] [blame] | 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 GPU_RASTER_EXPORT_H_ |
| 6 | #define GPU_RASTER_EXPORT_H_ |
| 7 | |
| Derek Schuff | 767eaa51 | 2023-12-11 19:46:09 | [diff] [blame] | 8 | #if defined(COMPONENT_BUILD) |
| Antoine Labour | 011cf77 | 2018-01-23 00:38:39 | [diff] [blame] | 9 | #if defined(WIN32) |
| 10 | |
| 11 | #if defined(RASTER_IMPLEMENTATION) |
| 12 | #define RASTER_EXPORT __declspec(dllexport) |
| 13 | #else |
| 14 | #define RASTER_EXPORT __declspec(dllimport) |
| 15 | #endif // defined(RASTER_IMPLEMENTATION) |
| 16 | |
| 17 | #else // defined(WIN32) |
| Antoine Labour | 011cf77 | 2018-01-23 00:38:39 | [diff] [blame] | 18 | #define RASTER_EXPORT __attribute__((visibility("default"))) |
| Antoine Labour | 011cf77 | 2018-01-23 00:38:39 | [diff] [blame] | 19 | #endif |
| 20 | |
| 21 | #else // defined(COMPONENT_BUILD) |
| 22 | #define RASTER_EXPORT |
| 23 | #endif |
| 24 | |
| 25 | #endif // GPU_RASTER_EXPORT_H_ |