From: Kyle Johnson Date: Tue, 4 May 2021 18:09:59 +0000 (-0500) Subject: Ensure QT plugin imports are only done when compiling statically X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=b987d46cc237fabaec209126bcb72ae5d85e4ce3 Ensure QT plugin imports are only done when compiling statically --- diff --git a/main.cpp b/main.cpp index 3a5ac29f..d3c52adb 100644 --- a/main.cpp +++ b/main.cpp @@ -70,9 +70,11 @@ #ifdef _WIN32 #include +#ifdef QT_STATIC Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin) Q_IMPORT_PLUGIN(QSvgPlugin) #endif +#endif using std::exception; using std::ifstream;