Include cycle_p.h only conditionally
authorEckhart Koppen <eckhart.koppen@nokia.com>
Mon, 13 Jun 2011 11:41:03 +0000 (14:41 +0300)
committerQt Continuous Integration System <qt-info@nokia.com>
Mon, 13 Jun 2011 13:45:18 +0000 (15:45 +0200)
cycle_p.h is only needed when HAVE_TICK_COUNTER is defined, and should
not be included otherwise. It is also a 3rd party header which is not
exported as a private header so far, which makes compilation of
dependenty modules fail.

Change-Id: I5c2546eae7d65fc68b8411c20634aca541c327d6
Reviewed-on: http://codereview.qt.nokia.com/465
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
src/testlib/qbenchmarkmeasurement_p.h

index a4b676f..8242365 100644 (file)
@@ -54,7 +54,9 @@
 //
 
 #include <QtCore/qelapsedtimer.h>
+#ifdef HAVE_TICK_COUNTER
 #include "3rdparty/cycle_p.h"
+#endif
 #include "qbenchmark.h"
 
 QT_BEGIN_NAMESPACE