Hi, during our work on making the Qt port of WebKit compile on Windows with MSVC and MingW g++ we ran into the following code in JavaScriptCore/API/JSStringRef.h:
...
#if !defined(WIN32) && !defined(_WIN32)
typedef unsigned short JSChar;
#else
typedef wchar_t JSChar;
#endif
...
JSChar being defined as wchar_t caused compiles problems for us inside WebCore
itself when converting from JSChar to UChar. For now we added a ||
defined(__BUILDING_QT) to the condition, but we're wondering why JSChar is
defined as wchar_t on Windows in the first place. We ran into this problem
only when compiling with g++, MSVC seems to silently convert wchar_t to
unsigned short.
Unfortunately the svn history does not provide anything regard this #ifdef
since it was added to the svn repository.
Does anybody know/remember why JSChar is defined to wchar_t on Windows and if
it is still needed?
Simon
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo/webkit-dev

