blob: 7c96d1738f6ce12d7deb69c14d909e4054c592d5 [file] [log] [blame]
tfarina@chromium.org7928ea22012-11-05 10:56:14 +09001// 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
5#ifndef DBUS_DBUS_EXPORT_H_
6#define DBUS_DBUS_EXPORT_H_
7
8// Defines CHROME_DBUS_EXPORT so that functionality implemented by the dbus
9// library can be exported to consumers.
10// NOTE: We haven't used DBUS_EXPORT because it would conflict with the version
11// from /usr/include/dbus-1.0/dbus/dbus-macros.h.
12
tfarina@chromium.org7928ea22012-11-05 10:56:14 +090013#if defined(WIN32)
mostynb@opera.comb2e3f8c2014-08-07 20:45:59 +090014#error dbus support is not currently expected to work on windows
15#endif // defined(WIN32)
tfarina@chromium.org7928ea22012-11-05 10:56:14 +090016
mostynb@opera.comb2e3f8c2014-08-07 20:45:59 +090017#if defined(COMPONENT_BUILD)
tfarina@chromium.org7928ea22012-11-05 10:56:14 +090018
19#if defined(DBUS_IMPLEMENTATION)
20#define CHROME_DBUS_EXPORT __attribute__((visibility("default")))
21#else
22#define CHROME_DBUS_EXPORT
23#endif
24
tfarina@chromium.org7928ea22012-11-05 10:56:14 +090025#else // !defined(COMPONENT_BUILD)
26
27#define CHROME_DBUS_EXPORT
28
29#endif // defined(COMPONENT_BUILD)
30
31#endif // DBUS_DBUS_EXPORT_H_