--- a/src/dbus/qdbusmacros.h Mon Jun 21 22:38:13 2010 +0100
+++ b/src/dbus/qdbusmacros.h Thu Jul 22 16:41:55 2010 +0100
@@ -48,8 +48,10 @@
#if defined(QDBUS_MAKEDLL)
# define QDBUS_EXPORT Q_DECL_EXPORT
+#elif defined(QT_SHARED)
+# define QDBUS_EXPORT Q_DECL_IMPORT
#else
-# define QDBUS_EXPORT Q_DECL_IMPORT
+# define QDBUS_EXPORT
#endif
#ifndef Q_MOC_RUN
@@ -64,10 +66,13 @@
#endif
// prevent syncqt complaints
+#ifndef QT_NO_DBUS
+
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
QT_MODULE(DBus)
QT_END_NAMESPACE
QT_END_HEADER
+#endif // QT_NO_DBUS
#endif