--- a/CMakeLists.txt Wed Jun 12 12:03:04 2013 +0200
+++ b/CMakeLists.txt Wed Jun 12 12:18:03 2013 +0200
@@ -78,16 +78,16 @@
if(NOT ${MINIMAL_FLAGS})
set(CMAKE_C_FLAGS "-pipe ${CMAKE_C_FLAGS}")
set(CMAKE_C_FLAGS_RELEASE "-w -Os -fomit-frame-pointer ${CMAKE_C_FLAGS_RELEASE}")
- set(CMAKE_C_FLAGS_DEBUG "-Wall -O0 -g -DDEBUG ${CMAKE_C_FLAGS_DEBUG}")
+ set(CMAKE_C_FLAGS_DEBUG "-Wall -O0 -g ${CMAKE_C_FLAGS_DEBUG}")
set(CMAKE_CXX_FLAGS "-pipe ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS_RELEASE "-w -Os -fomit-frame-pointer ${CMAKE_CXX_FLAGS_RELEASE}")
- set(CMAKE_CXX_FLAGS_DEBUG "-Wall -O0 -g -DDEBUG ${CMAKE_CXX_FLAGS_DEBUG}")
+ set(CMAKE_CXX_FLAGS_DEBUG "-Wall -O0 -g ${CMAKE_CXX_FLAGS_DEBUG}")
else()
#CMake adds a lot of additional configuration flags, so let's clear them up
set(CMAKE_C_FLAGS_RELEASE "")
- set(CMAKE_C_FLAGS_DEBUG "-Wall -DDEBUG")
+ set(CMAKE_C_FLAGS_DEBUG "-Wall")
set(CMAKE_CXX_FLAGS_RELEASE "")
- set(CMAKE_CXX_FLAGS_DEBUG "-Wall -DDEBUG")
+ set(CMAKE_CXX_FLAGS_DEBUG "-Wall")
endif()
#parse additional parameters
--- a/QTfrontend/net/tcpBase.cpp Wed Jun 12 12:03:04 2013 +0200
+++ b/QTfrontend/net/tcpBase.cpp Wed Jun 12 12:18:03 2013 +0200
@@ -134,7 +134,7 @@
connect(process, SIGNAL(error(QProcess::ProcessError)), this, SLOT(StartProcessError(QProcess::ProcessError)));
QStringList arguments=getArguments();
-#ifdef DEBUG
+#ifdef QT_DEBUG
// redirect everything written on stdout/stderr
process->setProcessChannelMode(QProcess::ForwardedChannels);
#endif
--- a/QTfrontend/ui/page/pagemain.cpp Wed Jun 12 12:03:04 2013 +0200
+++ b/QTfrontend/ui/page/pagemain.cpp Wed Jun 12 12:18:03 2013 +0200
@@ -133,7 +133,7 @@
setAttribute(Qt::WA_NoSystemBackground, true);
mainNote->setOpenExternalLinks(true);
-#ifdef DEBUG
+#ifdef QT_DEBUG
setDefaultDescription(QLabel::tr("This development build is 'work in progress' and may not be compatible with other versions of the game, while some features might be broken or incomplete!"));
#else
setDefaultDescription(QLabel::tr("Tip: %1").arg(randomTip()));
--- a/QTfrontend/ui_hwform.cpp Wed Jun 12 12:03:04 2013 +0200
+++ b/QTfrontend/ui_hwform.cpp Wed Jun 12 12:18:03 2013 +0200
@@ -55,7 +55,7 @@
HWForm->resize(QSize(640, 480).expandedTo(HWForm->minimumSizeHint()));
HWForm->setMinimumSize(QSize(720, 450));
QString title = QMainWindow::tr("Hedgewars %1").arg(*cVersionString);
-#ifdef DEBUG
+#ifdef QT_DEBUG
title += QString("-r%1 (%2)").arg(*cRevisionString, *cHashString);
#endif
HWForm->setWindowTitle(title);