diff options
author | Cédric OCHS <kervala@gmail.com> | 2011-03-28 11:28:00 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2011-03-28 17:03:20 (GMT) |
commit | 335fdd66947adadcdaaeb2896c42fba28d67843a (patch) | |
tree | ac272161b89f67ddd74ab0cc5da23a9fdc239605 | |
parent | aa144f7e11547549414a977f6e72ff8b92f95d30 (diff) | |
download | Qt-335fdd66947adadcdaaeb2896c42fba28d67843a.zip Qt-335fdd66947adadcdaaeb2896c42fba28d67843a.tar.gz Qt-335fdd66947adadcdaaeb2896c42fba28d67843a.tar.bz2 |
Fix errors when compiling Qt with STLport
Task-number: QTBUG-18374
Reviewed-by: Olivier Goffart
Merge-request: 1157
-rw-r--r-- | src/3rdparty/clucene/src/CLucene/config/CompilerMsvc.h | 4 | ||||
-rw-r--r-- | tools/linguist/lupdate/qdeclarative.cpp | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/3rdparty/clucene/src/CLucene/config/CompilerMsvc.h b/src/3rdparty/clucene/src/CLucene/config/CompilerMsvc.h index 82ff9aa..0021ea3 100644 --- a/src/3rdparty/clucene/src/CLucene/config/CompilerMsvc.h +++ b/src/3rdparty/clucene/src/CLucene/config/CompilerMsvc.h @@ -22,7 +22,9 @@ # pragma warning(disable: 4512) // This would be very annoying # pragma warning(disable: 4290) // Ignore exception specification warning # pragma warning(disable: 4250) // Ignore 'class1' : inherits 'class2::member' via dominance (e.g. in MultiReader) - #if (_MSC_VER < 1310) + // Check for STLport presence + #include <string> + #if (_MSC_VER < 1310) || defined(_STLPORT_VERSION) #define CL_NS_HASHING(func) std::func //the namespace is different on VC 7.0 #else #define CL_NS_HASHING(func) stdext::func diff --git a/tools/linguist/lupdate/qdeclarative.cpp b/tools/linguist/lupdate/qdeclarative.cpp index 1c1e9ad..6bf9cf4 100644 --- a/tools/linguist/lupdate/qdeclarative.cpp +++ b/tools/linguist/lupdate/qdeclarative.cpp @@ -62,6 +62,7 @@ #include <iostream> #include <cstdlib> +#include <cctype> QT_BEGIN_NAMESPACE |