]> Devoid-pointer.net GitWeb - FFBChecker.git/commitdiff
Do not include SDL2 specific files if there SDL2 is not available
authorMichal Malý <madcatxster@devoid-pointer.net>
Sat, 1 Aug 2015 14:41:51 +0000 (16:41 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Sat, 1 Aug 2015 14:41:51 +0000 (16:41 +0200)
mainwindow.cpp

index 8668fe813aa1e5de13574302a9a926cf2f9c64d1..d035be97ecf3cfc8b30f5d39f11b074f3e750def 100644 (file)
@@ -1,11 +1,14 @@
 #include "globalsettings.h"
-#include "linuxdeviceprober.h"
-#include "sdl2deviceprober.h"
 #include "mainwindow.h"
 #include "ui_mainwindow.h"
 #include <QtWidgets/QMessageBox>
 #include <QDebug>
 
+#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");