diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-12-10 09:10:43 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-12-10 09:13:28 (GMT) |
commit | f85306467b84cbc300d13aa52e0f5db4b1a2b1e6 (patch) | |
tree | fede343a88f0c2047468afcc85096fc0b5ae3cb8 /src/network/access | |
parent | c73d4f8b55dbb79b7a2df38d167a7c5ffd4520ce (diff) | |
download | Qt-f85306467b84cbc300d13aa52e0f5db4b1a2b1e6.zip Qt-f85306467b84cbc300d13aa52e0f5db4b1a2b1e6.tar.gz Qt-f85306467b84cbc300d13aa52e0f5db4b1a2b1e6.tar.bz2 |
Fix compilation if QT_NO_DATESTRING is defined.
If we have no string parsing in QDateTime, then we use sscanf, so we
must include <stdio.h>
Task-number: QTBUG-6668
Reviewed-by: Markus Goetz
Diffstat (limited to 'src/network/access')
-rw-r--r-- | src/network/access/qnetworkrequest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/access/qnetworkrequest.cpp b/src/network/access/qnetworkrequest.cpp index c91c608..923f2e3 100644 --- a/src/network/access/qnetworkrequest.cpp +++ b/src/network/access/qnetworkrequest.cpp @@ -49,6 +49,9 @@ #include "QtCore/qdatetime.h" #include <ctype.h> +#ifndef QT_NO_DATESTRING +# include <stdio.h> +#endif QT_BEGIN_NAMESPACE |