Chromium Code Reviews| Index: blimp/common/blimp_common_export.h |
| diff --git a/blimp/common/blimp_common_export.h b/blimp/common/blimp_common_export.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5a2c58b15cb2ec70dfc86b9f6b6b797dddd0f065 |
| --- /dev/null |
| +++ b/blimp/common/blimp_common_export.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef BLIMP_COMMON_BLIMP_COMMON_EXPORT_H_ |
| +#define BLIMP_COMMON_BLIMP_COMMON_EXPORT_H_ |
| + |
| +#if defined(COMPONENT_BUILD) |
| +#if defined(WIN32) |
| + |
| +#if defined(BLIMP_COMMON_IMPLEMENTATION) |
| +#define BLIMP_COMMON_EXPORT __declspec(dllexport) |
| +#else |
| +#define BLIMP_COMMON_EXPORT __declspec(dllimport) |
| +#endif // defined(BLIMP_COMMON_IMPLEMENTATION) |
| + |
| +#else // defined(WIN32) |
| +#if defined(BLIMP_COMMON_IMPLEMENTATION) |
| +#define BLIMP_COMMON_EXPORT __attribute__((visibility("default"))) |
| +#else |
| +#define BLIMP_COMMON_EXPORT |
| +#endif // defined(BLIMP_COMMON_IMPLEMENTATION) |
| +#endif // defined(WIN32) |
|
Khushal
2015/08/26 03:30:24
nit: comment not needed here.
David Trainor- moved to gerrit
2015/08/28 01:23:47
Done.
|
| + |
| +#else // defined(COMPONENT_BUILD) |
| +#define BLIMP_COMMON_EXPORT |
| +#endif // // defined(COMPONENT_BUILD) |
|
Khushal
2015/08/26 03:30:24
nit: not needed here.
David Trainor- moved to gerrit
2015/08/28 01:23:47
Done.
|
| + |
| +#endif // BLIMP_COMMON_BLIMP_COMMON_EXPORT_H_ |