Fix web contents modal dialog crash in SimpleWebViewDialog
[chromium-blink-merge.git] / dbus / dbus_export.h
blob0eda41a26fb61e58ea4007088ef589be7c2ef2ae
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.
5 #ifndef DBUS_DBUS_EXPORT_H_
6 #define DBUS_DBUS_EXPORT_H_
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.
13 #if defined(COMPONENT_BUILD)
14 #if defined(WIN32)
16 #if defined(DBUS_IMPLEMENTATION)
17 #define CHROME_DBUS_EXPORT __declspec(dllexport)
18 #else
19 #define CHROME_DBUS_EXPORT __declspec(dllimport)
20 #endif // defined(DBUS_IMPLEMENTATION)
22 #else // !defined(WIN32)
24 #if defined(DBUS_IMPLEMENTATION)
25 #define CHROME_DBUS_EXPORT __attribute__((visibility("default")))
26 #else
27 #define CHROME_DBUS_EXPORT
28 #endif
30 #endif // defined(WIN32)
32 #else // !defined(COMPONENT_BUILD)
34 #define CHROME_DBUS_EXPORT
36 #endif // defined(COMPONENT_BUILD)
38 #endif // DBUS_DBUS_EXPORT_H_