Turn off Qt including the C++ Standard Library headers

We don't use any of the Standard Library features or classes in
Subsurface, except for three uses of std::sort, for which I added the
necessary #include.

It's always a good idea to include directly the headers you want,
without relying on indirect inclusion

On my machine, the build time dropped from 16.96s to 13.38s or a 12%
improvement.

Signed-off-by: Thiago Macieira <thiago@macieira.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Thiago Macieira 2013-10-03 13:34:50 -07:00 committed by Dirk Hohndel
parent 7a368ab06b
commit ad52301ca7
2 changed files with 3 additions and 1 deletions

View file

@ -32,7 +32,7 @@ XSLTFILES = xslt/*.xslt xslt/*.xsl
EXTRA_FLAGS = $(QTCXXFLAGS) $(GTKCFLAGS) $(GLIB2CFLAGS) $(XML2CFLAGS) \ EXTRA_FLAGS = $(QTCXXFLAGS) $(GTKCFLAGS) $(GLIB2CFLAGS) $(XML2CFLAGS) \
$(LIBDIVECOMPUTERCFLAGS) \ $(LIBDIVECOMPUTERCFLAGS) \
$(LIBSOUPCFLAGS) $(GCONF2CFLAGS) -I. $(LIBSOUPCFLAGS) $(GCONF2CFLAGS) -I. -DQT_NO_STL
HEADERS = \ HEADERS = \
qt-ui/divelistview.h \ qt-ui/divelistview.h \

View file

@ -23,6 +23,8 @@
#include <QTableView> #include <QTableView>
#include <QColor> #include <QColor>
#include <algorithm>
#define TIME_INITIAL_MAX 30 #define TIME_INITIAL_MAX 30
#define MAX_DEPTH M_OR_FT(150, 450) #define MAX_DEPTH M_OR_FT(150, 450)