dbus_export.h 885 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2012 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 DBUS_DBUS_EXPORT_H_
  5. #define DBUS_DBUS_EXPORT_H_
  6. // Defines CHROME_DBUS_EXPORT so that functionality implemented by the dbus
  7. // library can be exported to consumers.
  8. // NOTE: We haven't used DBUS_EXPORT because it would conflict with the version
  9. // from /usr/include/dbus-1.0/dbus/dbus-macros.h.
  10. #if defined(WIN32)
  11. #error dbus support is not currently expected to work on windows
  12. #endif // defined(WIN32)
  13. #if defined(COMPONENT_BUILD)
  14. #if defined(DBUS_IMPLEMENTATION)
  15. #define CHROME_DBUS_EXPORT __attribute__((visibility("default")))
  16. #else
  17. #define CHROME_DBUS_EXPORT
  18. #endif
  19. #else // !defined(COMPONENT_BUILD)
  20. #define CHROME_DBUS_EXPORT
  21. #endif // defined(COMPONENT_BUILD)
  22. #endif // DBUS_DBUS_EXPORT_H_