Chromium Code Reviews| Index: ipc/ipc_export.h |
| diff --git a/ipc/ipc_export.h b/ipc/ipc_export.h |
| index 776b3ee5e756efc758359b87248ece5d4b7c172a..9f8411c3cee11fc37a0c3f04a26749cfe5e10fae 100644 |
| --- a/ipc/ipc_export.h |
| +++ b/ipc/ipc_export.h |
| @@ -17,16 +17,31 @@ |
| #define IPC_EXPORT __declspec(dllimport) |
| #endif // defined(IPC_IMPLEMENTATION) |
| +#if defined(IPC_MOJO_IMPLEMENTATION) |
|
darin (slow to review)
2014/07/23 23:03:33
why do we need a different component? can we just
Hajime Morrita
2014/07/24 00:38:44
I tried to make this part of IPC and let ipc depen
|
| +#define IPC_MOJO_EXPORT __declspec(dllexport) |
| +#else |
| +#define IPC_MOJO_EXPORT __declspec(dllimport) |
| +#endif // defined(IPC_MOJO_IMPLEMENTATION) |
| + |
| #else // defined(WIN32) |
| + |
| #if defined(IPC_IMPLEMENTATION) |
| #define IPC_EXPORT __attribute__((visibility("default"))) |
| #else |
| #define IPC_EXPORT |
| #endif |
| + |
| +#if defined(IPC_MOJO_IMPLEMENTATION) |
| +#define IPC_MOJO_EXPORT __attribute__((visibility("default"))) |
| +#else |
| +#define IPC_MOJO_EXPORT |
| +#endif |
| + |
| #endif |
| #else // defined(COMPONENT_BUILD) |
| #define IPC_EXPORT |
| +#define IPC_MOJO_EXPORT |
| #endif |
| #endif // IPC_IPC_EXPORT_H_ |