From: Kern Sibbald Date: Wed, 23 Nov 2011 12:35:31 +0000 (+0100) Subject: Require correct Qt version to build bat X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9932984ead5b3e4d20f4fe22867186cabf7a380d;p=bacula%2Fbacula Require correct Qt version to build bat --- diff --git a/bacula/src/qt-console/main.cpp b/bacula/src/qt-console/main.cpp index 5cd36c1397..baf0f625b1 100644 --- a/bacula/src/qt-console/main.cpp +++ b/bacula/src/qt-console/main.cpp @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2007-2010 Free Software Foundation Europe e.V. + Copyright (C) 2007-2011 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -37,6 +37,15 @@ #include #include +/* + * We need Qt version 4.6.2 or later to be able to comple correctly + */ +#if QT_VERSION < 0x040602 +#error "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" +#error "You need Qt version 4.6.2 or later to build Bat" +#error "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" +#endif + MainWin *mainWin; QApplication *app;