From: Michal MalĂ˝ Date: Sat, 1 Aug 2015 14:41:51 +0000 (+0200) Subject: Do not include SDL2 specific files if there SDL2 is not available X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=57f2d8f2d82a5ff0e3b9005dc487fd16d24a83f5;p=FFBChecker.git Do not include SDL2 specific files if there SDL2 is not available --- diff --git a/mainwindow.cpp b/mainwindow.cpp index 8668fe8..d035be9 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,11 +1,14 @@ #include "globalsettings.h" -#include "linuxdeviceprober.h" -#include "sdl2deviceprober.h" #include "mainwindow.h" #include "ui_mainwindow.h" #include #include +#include "linuxdeviceprober.h" +#ifdef FFBC_HAVE_SDL2 +#include "sdl2deviceprober.h" +#endif + const QString MainWindow::res_deviceErrorCap("Device error"); const QString MainWindow::res_effectNotLoaded("Not loaded"); const QString MainWindow::res_effectPlaying("Playing");