From 7f8612853273f9dc120a7bc096f10821eb48fd2b Mon Sep 17 00:00:00 2001 From: jaanttil Date: Wed, 24 Aug 2011 08:54:41 +0300 Subject: JSCore build fix for WEC7 WEC7 does not have std::ptrdiff_t type and std::min/std::max, introduced the missing types and functions in JSCore platform.h Task-number: QTBUG-22497 Change-Id: I0bf2bff2a80bdff36253f233b30cc95e1c772e23 Reviewed-by: Andreas Holzammer Reviewed-by: Kent Hansen --- src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/3rdparty') diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h index cb4a963caf..700977e1e3 100644 --- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h +++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h @@ -546,6 +546,17 @@ # define WTF_CPU_BIG_ENDIAN 1 # endif +#if (_WIN32_WCE >= 0x700) + // Windows Embedded Compact 7 is missing std::ptrdiff_t type and std::min and std::max. + // They are defined here to minimize the changes to JSCore + namespace std { + typedef ::ptrdiff_t ptrdiff_t; + template inline T max(const T& a, const T& b) { return (a > b) ? a : b; } + template inline T min(const T& a, const T& b) { return (a < b) ? a : b; } + } +#endif + +// For localtime in Windows CE # include #endif -- cgit v1.2.3