summaryrefslogtreecommitdiffstats
path: root/src/3rdparty
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty')
-rw-r--r--src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h11
1 files changed, 11 insertions, 0 deletions
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 <class T> inline T max(const T& a, const T& b) { return (a > b) ? a : b; }
+ template <class T> inline T min(const T& a, const T& b) { return (a < b) ? a : b; }
+ }
+#endif
+
+// For localtime in Windows CE
# include <ce_time.h>
#endif