Fix build without 'library'

Without QT_CONFIG(library) qdbus_resolve_conditionally would be declared
but not defined.

Change-Id: Id90f6c736080e4c1609568b3fab1f464c0e46aa3
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Frederik Gladhorn 2018-07-12 18:10:22 +02:00 committed by Simon Hausmann
parent 9a58ba4793
commit ff78e6fe35

View File

@ -126,14 +126,16 @@ bool qdbus_loadLibDBus()
#endif
}
#if QT_CONFIG(library)
void (*qdbus_resolve_conditionally(const char *name))()
{
#if QT_CONFIG(library)
if (qdbus_loadLibDBus())
return qdbus_libdbus->resolve(name);
#else
Q_UNUSED(name);
#endif
return 0;
}
#endif
void (*qdbus_resolve_me(const char *name))()
{