summaryrefslogtreecommitdiffstats
path: root/src/plugins/imageformats/dds/ddsheader.cpp
diff options
context:
space:
mode:
authorABBAPOH <ABBAPOH@nextmail.ru>2013-12-13 19:12:23 +0400
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-13 16:39:38 +0100
commit481275bf95128b71a2b70f99142a3e39a3b3507e (patch)
treeb4fb36f3b278e7f932794debfd4ae42cdb6d4a6d /src/plugins/imageformats/dds/ddsheader.cpp
parentc4e79ef1f99b5802d78e1d7b68ee086e63a183be (diff)
Fix build of the DDS plugin without QDataStream
Change-Id: I854c3bd82f244a6c45d91b08c3f1271538fd536a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/plugins/imageformats/dds/ddsheader.cpp')
-rw-r--r--src/plugins/imageformats/dds/ddsheader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/imageformats/dds/ddsheader.cpp b/src/plugins/imageformats/dds/ddsheader.cpp
index f5560be..4190ba9 100644
--- a/src/plugins/imageformats/dds/ddsheader.cpp
+++ b/src/plugins/imageformats/dds/ddsheader.cpp
@@ -42,6 +42,8 @@
#include "ddsheader.h"
+#ifndef QT_NO_DATASTREAM
+
QT_BEGIN_NAMESPACE
QDataStream &operator>>(QDataStream &s, DDSPixelFormat &pixelFormat)
@@ -133,3 +135,5 @@ QDataStream &operator<<(QDataStream &s, const DDSHeaderDX10 &header)
}
QT_END_NAMESPACE
+
+#endif // QT_NO_DATASTREAM