--- vlc-3.0.1/modules/gui/qt/qt.cpp.orig 2017-12-21 10:51:13.000000000 +0100 +++ vlc-3.0.1/modules/gui/qt/qt.cpp 2018-04-12 19:32:30.749006897 +0200 @@ -51,18 +51,21 @@ #include #include -#ifdef _WIN32 /* For static builds */ +/* For static builds */ +#ifdef QT_STATICPLUGIN #include - - #ifdef QT_STATICPLUGIN + #ifdef _WIN32 Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin) - Q_IMPORT_PLUGIN(QSvgIconPlugin) - Q_IMPORT_PLUGIN(QSvgPlugin) - #if !HAS_QT56 - Q_IMPORT_PLUGIN(AccessibleFactory) - #endif + #else + Q_IMPORT_PLUGIN(QXcbIntegrationPlugin) + #endif + Q_IMPORT_PLUGIN(QSvgIconPlugin) + Q_IMPORT_PLUGIN(QSvgPlugin) + #if !HAS_QT56 + Q_IMPORT_PLUGIN(AccessibleFactory) #endif #endif +/* End - For static builds */ /***************************************************************************** * Local prototypes.