ipc_message_support_export.h 822 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2017 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. #ifndef IPC_IPC_MESSAGE_SUPPORT_EXPORT_H_
  5. #define IPC_IPC_MESSAGE_SUPPORT_EXPORT_H_
  6. #if defined(COMPONENT_BUILD)
  7. #if defined(WIN32)
  8. #if defined(IPC_MESSAGE_SUPPORT_IMPL)
  9. #define IPC_MESSAGE_SUPPORT_EXPORT __declspec(dllexport)
  10. #else
  11. #define IPC_MESSAGE_SUPPORT_EXPORT __declspec(dllimport)
  12. #endif // defined(IPC_MESSAGE_SUPPORT_IMPL)
  13. #else // defined(WIN32)
  14. #if defined(IPC_MESSAGE_SUPPORT_IMPL)
  15. #define IPC_MESSAGE_SUPPORT_EXPORT __attribute__((visibility("default")))
  16. #else
  17. #define IPC_MESSAGE_SUPPORT_EXPORT
  18. #endif
  19. #endif
  20. #else // defined(COMPONENT_BUILD)
  21. #define IPC_MESSAGE_SUPPORT_EXPORT
  22. #endif
  23. #endif // IPC_IPC_MESSAGE_SUPPORT_EXPORT_H_