Chromium Code Reviews| Index: ui/gfx/codec/codec_export.h |
| diff --git a/ui/gfx/codec/codec_export.h b/ui/gfx/codec/codec_export.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..fffae370668e74938f62226431b298b4b2bf17af |
| --- /dev/null |
| +++ b/ui/gfx/codec/codec_export.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
|
sky
2017/03/15 19:27:41
2017
chrishtr
2017/03/15 19:52:17
Done, sorry about that.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_GFX_CODEC_CODEC_EXPORT_H_ |
| +#define UI_GFX_CODEC_CODEC_EXPORT_H_ |
| + |
| +#if defined(COMPONENT_BUILD) |
| +#if defined(WIN32) |
| + |
| +#if defined(CODEC_IMPLEMENTATION) |
| +#define CODEC_EXPORT __declspec(dllexport) |
| +#else |
| +#define CODEC_EXPORT __declspec(dllimport) |
| +#endif // defined(CODEC_IMPLEMENTATION) |
| + |
| +#else // defined(WIN32) |
| +#if defined(CODEC_IMPLEMENTATION) |
| +#define CODEC_EXPORT __attribute__((visibility("default"))) |
| +#else |
| +#define CODEC_EXPORT |
| +#endif |
| +#endif |
| + |
| +#else // defined(COMPONENT_BUILD) |
| +#define CODEC_EXPORT |
| +#endif |
| + |
| +#endif // UI_GFX_CODEC_CODEC_EXPORT_H_ |