summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/clucene
diff options
context:
space:
mode:
authorCédric OCHS <kervala@gmail.com>2011-03-28 11:28:00 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2011-03-28 17:03:20 (GMT)
commit335fdd66947adadcdaaeb2896c42fba28d67843a (patch)
treeac272161b89f67ddd74ab0cc5da23a9fdc239605 /src/3rdparty/clucene
parentaa144f7e11547549414a977f6e72ff8b92f95d30 (diff)
downloadQt-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
Diffstat (limited to 'src/3rdparty/clucene')
-rw-r--r--src/3rdparty/clucene/src/CLucene/config/CompilerMsvc.h4
1 files changed, 3 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