From 57f2d8f2d82a5ff0e3b9005dc487fd16d24a83f5 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Michal=20Mal=C3=BD?= <madcatxster@devoid-pointer.net>
Date: Sat, 1 Aug 2015 16:41:51 +0200
Subject: [PATCH] Do not include SDL2 specific files if there SDL2 is not
 available

---
 mainwindow.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

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 <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");
-- 
2.43.5