Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:pisoj:grampsdeps
mingw32-libwebkit
webkit-1.2.0-windows.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File webkit-1.2.0-windows.patch of Package mingw32-libwebkit
--- JavaScriptCore/GNUmakefile.am (revision 57712) +++ JavaScriptCore/GNUmakefile.am (working copy) @@ -276,7 +276,6 @@ JavaScriptCore/wtf/ThreadIdentifierDataPthreads.h \ JavaScriptCore/wtf/Threading.cpp \ JavaScriptCore/wtf/Threading.h \ - JavaScriptCore/wtf/ThreadingPthreads.cpp \ JavaScriptCore/wtf/ThreadSpecific.h \ JavaScriptCore/wtf/TypeTraits.cpp \ JavaScriptCore/wtf/TypeTraits.h \ @@ -305,6 +304,7 @@ JavaScriptCore/runtime/MarkStackWin.cpp else javascriptcore_sources += \ + JavaScriptCore/wtf/ThreadingPthreads.cpp \ JavaScriptCore/jit/ExecutableAllocatorPosix.cpp \ JavaScriptCore/runtime/MarkStackPosix.cpp endif @@ -565,7 +565,7 @@ Programs_minidom_LDADD = \ libJavaScriptCore.la \ -lm \ - -lstdc++ + -lstdc++ -lwinmm Programs_minidom_LDFLAGS = \ -no-install \ @@ -587,7 +587,7 @@ $(UNICODE_CFLAGS) Programs_jsc_LDADD = \ - libJavaScriptCore.la + libJavaScriptCore.la -lwinmm javascriptcore_dist += \ $(CREATE_HASH_TABLE) \ --- JavaScriptCore/runtime/Collector.cpp (revision 56613) +++ JavaScriptCore/runtime/Collector.cpp (working copy) @@ -201,7 +201,7 @@ #elif OS(WINCE) void* address = VirtualAlloc(NULL, BLOCK_SIZE, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE); #elif OS(WINDOWS) -#if COMPILER(MINGW) && !defined(__MINGW64_VERSION_MAJOR) +#if COMPILER(MINGW) && !COMPILER(MINGW64) void* address = __mingw_aligned_malloc(BLOCK_SIZE, BLOCK_SIZE); #else void* address = _aligned_malloc(BLOCK_SIZE, BLOCK_SIZE); @@ -292,7 +292,7 @@ #elif OS(WINCE) VirtualFree(block, 0, MEM_RELEASE); #elif OS(WINDOWS) -#if COMPILER(MINGW) && !defined(__MINGW64_VERSION_MAJOR) +#if COMPILER(MINGW) && !COMPILER(MINGW64) __mingw_aligned_free(block); #else _aligned_free(block); --- JavaScriptCore/wtf/Platform.h (revision 56613) +++ JavaScriptCore/wtf/Platform.h (working copy) @@ -79,9 +79,14 @@ #endif /* COMPILER(MINGW) - MinGW GCC */ -#if defined(MINGW) || defined(__MINGW32__) +/* COMPILER(MINGW64) - mingw-w64 GCC - only used as additional check to exclude mingw.org specific functions */ +#if defined (__MINGW32__) #define WTF_COMPILER_MINGW 1 -#endif +#include <_mingw.h> /* private MinGW header */ +# if defined (__MINGW64_VERSION_MAJOR) /* best way to check for mingw-w64 vs mingw.org */ +# define WTF_COMPILER_MINGW64 1 +# endif /* __MINGW64_VERSION_MAJOR */ +#endif /* __MINGW32__ */ /* COMPILER(WINSCW) - CodeWarrior for Symbian emulator */ #if defined(__WINSCW__) @@ -912,6 +917,8 @@ #elif CPU(X86) && OS(WINDOWS) && COMPILER(MINGW) && GCC_VERSION >= 40100 #define ENABLE_JIT 1 #define WTF_USE_JIT_STUB_ARGUMENT_VA_LIST 1 +#elif CPU(X86_64) && OS(WINDOWS) && COMPILER(MINGW64) && GCC_VERSION >= 40100 + #define ENABLE_JIT 1 #elif CPU(X86) && OS(WINDOWS) && COMPILER(MSVC) #define ENABLE_JIT 1 #define WTF_USE_JIT_STUB_ARGUMENT_REGISTER 1 @@ -986,6 +993,7 @@ #if PLATFORM(QT) #if (CPU(X86) && OS(WINDOWS) && COMPILER(MINGW) && GCC_VERSION >= 40100) \ + || (CPU(X86_64) && OS(WINDOWS) && COMPILER(MINGW64) && GCC_VERSION >= 40100) \ || (CPU(X86) && OS(WINDOWS) && COMPILER(MSVC)) \ || (CPU(X86) && OS(LINUX) && GCC_VERSION >= 40100) \ || (CPU(X86_64) && OS(LINUX) && GCC_VERSION >= 40100) \ --- JavaScriptCore/wtf/unicode/glib/UnicodeGLib.cpp (revision 56613) +++ JavaScriptCore/wtf/unicode/glib/UnicodeGLib.cpp (working copy) @@ -49,7 +49,7 @@ GOwnPtr<GError> gerror; GOwnPtr<char> utf8src; - utf8src.set(g_utf16_to_utf8(src, srcLength, 0, 0, &gerror.outPtr())); + utf8src.set(g_utf16_to_utf8(reinterpret_cast<const gunichar2*>(src), srcLength, 0, 0, &gerror.outPtr())); if (gerror) { *error = true; return -1; @@ -60,7 +60,7 @@ long utf16resultLength = -1; GOwnPtr<UChar> utf16result; - utf16result.set(g_utf8_to_utf16(utf8result.get(), -1, 0, &utf16resultLength, &gerror.outPtr())); + utf16result.set(reinterpret_cast<UChar*>(g_utf8_to_utf16(utf8result.get(), -1, 0, &utf16resultLength, &gerror.outPtr()))); if (gerror) { *error = true; return -1; @@ -81,7 +81,7 @@ GOwnPtr<GError> gerror; GOwnPtr<char> utf8src; - utf8src.set(g_utf16_to_utf8(src, srcLength, 0, 0, &gerror.outPtr())); + utf8src.set(g_utf16_to_utf8(reinterpret_cast<const gunichar2*>(src), srcLength, 0, 0, &gerror.outPtr())); if (gerror) { *error = true; return -1; @@ -92,7 +92,7 @@ long utf16resultLength = -1; GOwnPtr<UChar> utf16result; - utf16result.set(g_utf8_to_utf16(utf8result.get(), -1, 0, &utf16resultLength, &gerror.outPtr())); + utf16result.set(reinterpret_cast<UChar*>(g_utf8_to_utf16(utf8result.get(), -1, 0, &utf16resultLength, &gerror.outPtr()))); if (gerror) { *error = true; return -1; @@ -113,7 +113,7 @@ GOwnPtr<GError> gerror; GOwnPtr<char> utf8src; - utf8src.set(g_utf16_to_utf8(src, srcLength, 0, 0, &gerror.outPtr())); + utf8src.set(g_utf16_to_utf8(reinterpret_cast<const gunichar2*>(src), srcLength, 0, 0, &gerror.outPtr())); if (gerror) { *error = true; return -1; @@ -124,7 +124,7 @@ long utf16resultLength = -1; GOwnPtr<UChar> utf16result; - utf16result.set(g_utf8_to_utf16(utf8result.get(), -1, 0, &utf16resultLength, &gerror.outPtr())); + utf16result.set(reinterpret_cast<UChar*>(g_utf8_to_utf16(utf8result.get(), -1, 0, &utf16resultLength, &gerror.outPtr()))); if (gerror) { *error = true; return -1; @@ -189,8 +189,8 @@ GOwnPtr<char> utf8a; GOwnPtr<char> utf8b; - utf8a.set(g_utf16_to_utf8(a, len, 0, 0, 0)); - utf8b.set(g_utf16_to_utf8(b, len, 0, 0, 0)); + utf8a.set(g_utf16_to_utf8(reinterpret_cast<const gunichar2*>(a), len, 0, 0, 0)); + utf8b.set(g_utf16_to_utf8(reinterpret_cast<const gunichar2*>(b), len, 0, 0, 0)); GOwnPtr<char> foldedA; GOwnPtr<char> foldedB; --- JavaScriptCore/wtf/unicode/glib/UnicodeGLib.h (revision 56613) +++ JavaScriptCore/wtf/unicode/glib/UnicodeGLib.h (working copy) @@ -34,7 +34,12 @@ #include <stdlib.h> #include <string.h> -typedef uint16_t UChar; +#if !defined(WIN32) && !defined(_WIN32) && !defined(__WINSCW__) \ + && !(defined(__CC_ARM) || defined(__ARMCC__)) /* RVCT */ + typedef unsigned short UChar; +#else + typedef wchar_t UChar; +#endif typedef int32_t UChar32; namespace WTF { --- JavaScriptCore/jit/ExecutableAllocator.h (revision 56613) +++ JavaScriptCore/jit/ExecutableAllocator.h (working copy) @@ -285,7 +285,7 @@ inline ExecutablePool::ExecutablePool(size_t n) { size_t allocSize = roundUpAllocationSize(n, JIT_ALLOCATOR_PAGE_SIZE); - Allocation mem = systemAlloc(allocSize); + const Allocation mem = systemAlloc(allocSize); m_pools.append(mem); m_freePtr = mem.pages; if (!m_freePtr) --- GNUmakefile.am (revision 57712) +++ GNUmakefile.am (working copy) @@ -142,7 +142,7 @@ # It breaks the build on other platforms, so we use it conditionally if OS_WIN32 no_undefined = -no-undefined -version_script = -export-symbols-regex "^(webkit_|JS).*" +version_script = -export-symbols-regex "^(webkit_|k?JS).*" endif if OS_GNU @@ -181,7 +181,7 @@ libJavaScriptCore_la_LIBADD = \ $(UNICODE_LIBS) \ $(GLIB_LIBS) \ - -lpthread + $(PTHREAD_LIBS) libJavaScriptCore_la_CXXFLAGS = \ $(global_cxxflags) \ @@ -235,7 +235,6 @@ $(no_undefined) libwebkit_1_0_la_LIBADD = \ - -lpthread \ libJavaScriptCore.la \ libWebCoreJS.la \ $(webcore_ldflags) \ @@ -257,7 +256,8 @@ $(PNG_LIBS) \ $(SQLITE3_LIBS) \ $(UNICODE_LIBS) \ - $(XT_LIBS) + $(PTREAD_LIBS) \ + $(XT_LIBS) -lwinmm -lshlwapi -lole32 # # Extra checks and flags --- WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp (revision 56613) +++ WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp (working copy) @@ -637,7 +637,7 @@ if (!dicts) return; - gchar* ctext = g_utf16_to_utf8(const_cast<gunichar2*>(text), length, 0, 0, 0); + gchar* ctext = g_utf16_to_utf8(const_cast<gunichar2*>(reinterpret_cast<const gunichar2*>(text)), length, 0, 0, 0); int utflen = g_utf8_strlen(ctext, -1); PangoLanguage* language = pango_language_get_default(); --- WebCore/dom/XMLTokenizerLibxml2.cpp (revision 56613) +++ WebCore/dom/XMLTokenizerLibxml2.cpp (working copy) @@ -908,7 +908,7 @@ if (m_parserStopped) return; -#if COMPILER(MSVC) || COMPILER(RVCT) +#if OS(WINDOWS) || COMPILER(RVCT) char m[1024]; vsnprintf(m, sizeof(m) - 1, message, args); #else @@ -922,7 +922,7 @@ else handleError(type, m, lineNumber(), columnNumber()); -#if !COMPILER(MSVC) && !COMPILER(RVCT) +#if !OS(WINDOWS) && !COMPILER(RVCT) free(m); #endif } --- WebCore/plugins/PluginView.h (revision 56613) +++ WebCore/plugins/PluginView.h (working copy) @@ -312,7 +312,7 @@ bool m_haveInitialized; bool m_isWaitingToStart; -#if defined(XP_UNIX) +#if defined(XP_UNIX) || PLATFORM(GTK) bool m_needsXEmbed; #endif @@ -340,7 +340,7 @@ private: -#if defined(XP_UNIX) || OS(SYMBIAN) +#if defined(XP_UNIX) || OS(SYMBIAN) || PLATFORM(GTK) void setNPWindowIfNeeded(); #elif defined(XP_MACOSX) NP_CGContext m_npCgContext; --- WebCore/plugins/gtk/PluginViewGtk.cpp (revision 56613) +++ WebCore/plugins/gtk/PluginViewGtk.cpp (working copy) @@ -45,6 +45,7 @@ #include "Image.h" #include "KeyboardEvent.h" #include "MouseEvent.h" +#include "NotImplemented.h" #include "Page.h" #include "PlatformKeyboardEvent.h" #include "PlatformMouseEvent.h" @@ -71,7 +72,7 @@ #include <cairo/cairo-xlib.h> #include <gdk/gdkx.h> #elif defined(GDK_WINDOWING_WIN32) -#include "PluginMessageThrottlerWin.h" +#include "win/PluginMessageThrottlerWin.h" #include <gdk/gdkwin32.h> #endif @@ -706,6 +707,7 @@ gtk_widget_queue_draw(m_parentFrame->view()->hostWindow()->platformPageClient()); } +#ifndef GDK_WINDOWING_WIN32 static Display* getPluginDisplay() { // The plugin toolkit might have a different X connection open. Since we're @@ -719,6 +721,7 @@ return 0; #endif } +#endif #if defined(XP_UNIX) static void getVisualAndColormap(int depth, Visual** visual, Colormap* colormap) @@ -788,15 +791,16 @@ PluginView::setCurrentPluginView(this); JSC::JSLock::DropAllLocks dropAllLocks(JSC::SilenceAssertionsOnly); setCallingPlugin(true); +#if defined(XP_UNIX) m_plugin->pluginFuncs()->getvalue(m_instance, NPPVpluginNeedsXEmbed, &m_needsXEmbed); +#endif setCallingPlugin(false); PluginView::setCurrentPluginView(0); } if (m_isWindowed) { + GtkWidget* pageClient = m_parentFrame->view()->hostWindow()->platformPageClient(); #if defined(XP_UNIX) - GtkWidget* pageClient = m_parentFrame->view()->hostWindow()->platformPageClient(); - if (m_needsXEmbed) { // If our parent is not anchored the startup process will // fail miserably for XEmbed plugins a bit later on when @@ -817,7 +821,9 @@ #endif } else { setPlatformWidget(0); +#if defined(XP_UNIX) m_pluginDisplay = getPluginDisplay(); +#endif } show(); --- WebCore/plugins/PluginView.cpp (revision 56613) +++ WebCore/plugins/PluginView.cpp (working copy) @@ -68,7 +68,7 @@ #include <wtf/ASCIICType.h> #if OS(WINDOWS) && ENABLE(NETSCAPE_PLUGIN_API) -#include "PluginMessageThrottlerWin.h" +#include "win/PluginMessageThrottlerWin.h" #endif using JSC::ExecState; @@ -333,7 +333,7 @@ JSC::JSLock::DropAllLocks dropAllLocks(JSC::SilenceAssertionsOnly); #if ENABLE(NETSCAPE_PLUGIN_API) -#ifdef XP_WIN +#if defined(XP_WIN) && !PLATFORM(GTK) // Unsubclass the window if (m_isWindowed) { #if OS(WINCE) @@ -345,7 +345,7 @@ WNDPROC currentWndProc = (WNDPROC)GetWindowLongPtr(platformPluginWidget(), GWLP_WNDPROC); if (currentWndProc == PluginViewWndProc) - SetWindowLongPtr(platformPluginWidget(), GWLP_WNDPROC, (LONG)m_pluginWndProc); + SetWindowLongPtr(platformPluginWidget(), GWLP_WNDPROC, (LONG_PTR)m_pluginWndProc); #endif } #endif // XP_WIN --- WebCore/plugins/win/PluginDatabaseWin.cpp (revision 57712) +++ WebCore/plugins/win/PluginDatabaseWin.cpp (working copy) @@ -34,7 +34,7 @@ #include <windows.h> #include <shlwapi.h> -#if COMPILER(MINGW) +#if COMPILER(MINGW) && !COMPILER(MINGW64) #define _countof(x) (sizeof(x)/sizeof(x[0])) #endif @@ -104,7 +104,7 @@ DWORD pathStrSize = sizeof(pathStr); DWORD type; - result = SHGetValue(key, name, TEXT("Path"), &type, (LPBYTE)pathStr, &pathStrSize); + result = SHGetValueW(key, name, L"Path", &type, (LPBYTE)pathStr, &pathStrSize); if (result != ERROR_SUCCESS || type != REG_SZ) continue; @@ -212,7 +212,7 @@ HKEY key; LONG result; - result = RegOpenKeyEx(HKEY_LOCAL_MACHINE, TEXT("Software\\Mozilla"), 0, KEY_READ, &key); + result = RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"Software\\Mozilla", 0, KEY_READ, &key); if (result == ERROR_SUCCESS) { WCHAR name[128]; FILETIME lastModified; @@ -229,7 +229,7 @@ HKEY extensionsKey; // Try opening the key - result = RegOpenKeyEx(key, extensionsPath.charactersWithNullTermination(), 0, KEY_READ, &extensionsKey); + result = RegOpenKeyExW(key, extensionsPath.charactersWithNullTermination(), 0, KEY_READ, &extensionsKey); if (result == ERROR_SUCCESS) { // Now get the plugins directory @@ -237,7 +237,7 @@ DWORD pluginsDirectorySize = sizeof(pluginsDirectoryStr); DWORD type; - result = RegQueryValueEx(extensionsKey, TEXT("Plugins"), 0, &type, (LPBYTE)&pluginsDirectoryStr, &pluginsDirectorySize); + result = RegQueryValueExW(extensionsKey, L"Plugins", 0, &type, (LPBYTE)&pluginsDirectoryStr, &pluginsDirectorySize); if (result == ERROR_SUCCESS && type == REG_SZ) directories.append(String(pluginsDirectoryStr, pluginsDirectorySize / sizeof(WCHAR) - 1)); @@ -255,7 +255,7 @@ #if !OS(WINCE) // The new WMP Firefox plugin is installed in \PFiles\Plugins if it can't find any Firefox installs WCHAR pluginDirectoryStr[_MAX_PATH + 1]; - DWORD pluginDirectorySize = ::ExpandEnvironmentStringsW(TEXT("%SYSTEMDRIVE%\\PFiles\\Plugins"), pluginDirectoryStr, _countof(pluginDirectoryStr)); + DWORD pluginDirectorySize = ::ExpandEnvironmentStringsW(L"%SYSTEMDRIVE%\\PFiles\\Plugins", pluginDirectoryStr, _countof(pluginDirectoryStr)); if (pluginDirectorySize > 0 && pluginDirectorySize <= _countof(pluginDirectoryStr)) directories.append(String(pluginDirectoryStr, pluginDirectorySize - 1)); @@ -265,7 +265,7 @@ WCHAR installationDirectoryStr[_MAX_PATH]; DWORD installationDirectorySize = sizeof(installationDirectoryStr); - HRESULT result = SHGetValue(HKEY_LOCAL_MACHINE, TEXT("Software\\Microsoft\\MediaPlayer"), TEXT("Installation Directory"), &type, (LPBYTE)&installationDirectoryStr, &installationDirectorySize); + HRESULT result = SHGetValueW(HKEY_LOCAL_MACHINE, L"Software\\Microsoft\\MediaPlayer", L"Installation Directory", &type, (LPBYTE)&installationDirectoryStr, &installationDirectorySize); if (result == ERROR_SUCCESS && type == REG_SZ) directories.append(String(installationDirectoryStr, installationDirectorySize / sizeof(WCHAR) - 1)); @@ -277,7 +277,7 @@ WCHAR installationDirectoryStr[_MAX_PATH]; DWORD installationDirectorySize = sizeof(installationDirectoryStr); - HRESULT result = SHGetValue(HKEY_LOCAL_MACHINE, TEXT("Software\\Apple Computer, Inc.\\QuickTime"), TEXT("InstallDir"), &type, (LPBYTE)&installationDirectoryStr, &installationDirectorySize); + HRESULT result = SHGetValueW(HKEY_LOCAL_MACHINE, L"Software\\Apple Computer, Inc.\\QuickTime", L"InstallDir", &type, (LPBYTE)&installationDirectoryStr, &installationDirectorySize); if (result == ERROR_SUCCESS && type == REG_SZ) { String pluginDir = String(installationDirectoryStr, installationDirectorySize / sizeof(WCHAR) - 1) + "\\plugins"; @@ -288,7 +288,7 @@ static inline void addAdobeAcrobatPluginDirectory(Vector<String>& directories) { HKEY key; - HRESULT result = RegOpenKeyEx(HKEY_LOCAL_MACHINE, TEXT("Software\\Adobe\\Acrobat Reader"), 0, KEY_READ, &key); + HRESULT result = RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"Software\\Adobe\\Acrobat Reader", 0, KEY_READ, &key); if (result != ERROR_SUCCESS) return; @@ -319,7 +319,7 @@ DWORD acrobatInstallPathSize = sizeof(acrobatInstallPathStr); String acrobatPluginKeyPath = "Software\\Adobe\\Acrobat Reader\\" + latestAcrobatVersionString + "\\InstallPath"; - result = SHGetValue(HKEY_LOCAL_MACHINE, acrobatPluginKeyPath.charactersWithNullTermination(), 0, &type, (LPBYTE)acrobatInstallPathStr, &acrobatInstallPathSize); + result = SHGetValueW(HKEY_LOCAL_MACHINE, acrobatPluginKeyPath.charactersWithNullTermination(), 0, &type, (LPBYTE)acrobatInstallPathStr, &acrobatInstallPathSize); if (result == ERROR_SUCCESS) { String acrobatPluginDirectory = String(acrobatInstallPathStr, acrobatInstallPathSize / sizeof(WCHAR) - 1) + "\\browser"; @@ -339,12 +339,12 @@ if (!cachedPluginDirectory) { cachedPluginDirectory = true; - int moduleFileNameLen = GetModuleFileName(0, moduleFileNameStr, _MAX_PATH); + int moduleFileNameLen = GetModuleFileNameW(0, moduleFileNameStr, _MAX_PATH); if (!moduleFileNameLen || moduleFileNameLen == _MAX_PATH) goto exit; - if (!PathRemoveFileSpec(moduleFileNameStr)) + if (!PathRemoveFileSpecW(moduleFileNameStr)) goto exit; pluginsDirectory = String(moduleFileNameStr) + "\\Plugins"; @@ -358,15 +358,15 @@ #if !OS(WINCE) WCHAR systemDirectoryStr[MAX_PATH]; - if (GetSystemDirectory(systemDirectoryStr, _countof(systemDirectoryStr)) == 0) + if (GetSystemDirectoryW(systemDirectoryStr, _countof(systemDirectoryStr)) == 0) return; WCHAR macromediaDirectoryStr[MAX_PATH]; - PathCombine(macromediaDirectoryStr, systemDirectoryStr, TEXT("macromed\\Flash")); + PathCombineW(macromediaDirectoryStr, systemDirectoryStr, L"macromed\\Flash"); directories.append(macromediaDirectoryStr); - PathCombine(macromediaDirectoryStr, systemDirectoryStr, TEXT("macromed\\Shockwave 10")); + PathCombineW(macromediaDirectoryStr, systemDirectoryStr, L"macromed\\Shockwave 10"); directories.append(macromediaDirectoryStr); #endif } --- WebCore/platform/text/TextStream.cpp (revision 57712) +++ WebCore/platform/text/TextStream.cpp (working copy) @@ -108,7 +108,7 @@ return String::adopt(m_text); } -#if OS(WINDOWS) && PLATFORM(X86_64) && COMPILER(MSVC) +#if OS(WINDOWS) && CPU(X86_64) TextStream& TextStream::operator<<(__int64 i) { char buffer[printBufferSize]; --- WebCore/platform/text/gtk/TextBreakIteratorGtk.cpp (revision 56613) +++ WebCore/platform/text/gtk/TextBreakIteratorGtk.cpp (working copy) @@ -59,7 +59,7 @@ long utf8len; GOwnPtr<char> utf8; - utf8.set(g_utf16_to_utf8(string, length, 0, &utf8len, 0)); + utf8.set(g_utf16_to_utf8(reinterpret_cast<const gunichar2*>(string), length, 0, &utf8len, 0)); // FIXME: assumes no surrogate pairs --- WebCore/platform/text/TextStream.h (revision 56613) +++ WebCore/platform/text/TextStream.h (working copy) @@ -45,7 +45,7 @@ TextStream& operator<<(const char*); TextStream& operator<<(void*); TextStream& operator<<(const String&); -#if OS(WINDOWS) && PLATFORM(X86_64) && COMPILER(MSVC) +#if OS(WINDOWS) && CPU(X86_64) TextStream& operator<<(unsigned __int64); TextStream& operator<<(__int64); #endif --- WebCore/platform/text/TextEncoding.cpp (revision 56613) +++ WebCore/platform/text/TextEncoding.cpp (working copy) @@ -119,14 +119,14 @@ return newTextCodec(*this)->encode(reinterpret_cast<const UChar *>(str.utf16()), str.length(), handling); #elif USE(GLIB_UNICODE) GOwnPtr<char> UTF8Source; - UTF8Source.set(g_utf16_to_utf8(characters, length, 0, 0, 0)); + UTF8Source.set(g_utf16_to_utf8(reinterpret_cast<const gunichar2*>(characters), length, 0, 0, 0)); GOwnPtr<char> UTF8Normalized; UTF8Normalized.set(g_utf8_normalize(UTF8Source.get(), -1, G_NORMALIZE_NFC)); long UTF16Length; GOwnPtr<UChar> UTF16Normalized; - UTF16Normalized.set(g_utf8_to_utf16(UTF8Normalized.get(), -1, 0, &UTF16Length, 0)); + UTF16Normalized.set(reinterpret_cast<UChar*>(g_utf8_to_utf16(UTF8Normalized.get(), -1, 0, &UTF16Length, 0))); return newTextCodec(*this)->encode(UTF16Normalized.get(), UTF16Length, handling); #elif OS(WINCE) --- WebCore/platform/graphics/transforms/TransformationMatrix.h (revision 56613) +++ WebCore/platform/graphics/transforms/TransformationMatrix.h (working copy) @@ -47,7 +47,7 @@ #endif #if PLATFORM(WIN) || (PLATFORM(QT) && OS(WINDOWS)) || (PLATFORM(WX) && OS(WINDOWS)) -#if COMPILER(MINGW) +#if COMPILER(MINGW) && !COMPILER(MINGW64) typedef struct _XFORM XFORM; #else typedef struct tagXFORM XFORM; --- WebCore/platform/FileSystem.h (revision 56613) +++ WebCore/platform/FileSystem.h (working copy) @@ -64,7 +64,7 @@ class CString; // PlatformModule -#if OS(WINDOWS) +#if OS(WINDOWS) && !PLATFORM(GTK) typedef HMODULE PlatformModule; #elif PLATFORM(QT) #if defined(Q_WS_MAC) @@ -109,7 +109,7 @@ #if PLATFORM(QT) typedef QFile* PlatformFileHandle; const PlatformFileHandle invalidPlatformFileHandle = 0; -#elif OS(WINDOWS) +#elif OS(WINDOWS) && !PLATFORM(GTK) typedef HANDLE PlatformFileHandle; // FIXME: -1 is INVALID_HANDLE_VALUE, defined in <winbase.h>. Chromium tries to // avoid using Windows headers in headers. We'd rather move this into the .cpp. @@ -144,7 +144,7 @@ // Methods for dealing with loadable modules bool unloadModule(PlatformModule); -#if PLATFORM(WIN) +#if PLATFORM(WIN) && !PLATFORM(GTK) String localUserSpecificStorageDirectory(); String roamingUserSpecificStorageDirectory(); --- WebCore/platform/Arena.h (revision 56613) +++ WebCore/platform/Arena.h (working copy) @@ -40,11 +40,13 @@ #ifndef Arena_h #define Arena_h +#include <stdio.h> + #define ARENA_ALIGN_MASK 3 namespace WebCore { -typedef unsigned long uword; +typedef uintptr_t uword; struct Arena { Arena* next; // next arena --- WebCore/platform/KURL.cpp (revision 56613) +++ WebCore/platform/KURL.cpp (working copy) @@ -1422,7 +1422,7 @@ #elif USE(GLIB_UNICODE) GOwnPtr<gchar> utf8Hostname; GOwnPtr<GError> utf8Err; - utf8Hostname.set(g_utf16_to_utf8(str, strLen, 0, 0, &utf8Err.outPtr())); + utf8Hostname.set(g_utf16_to_utf8(reinterpret_cast<const gunichar2*>(str), strLen, 0, 0, &utf8Err.outPtr())); if (utf8Err) return; --- configure.ac (revision 57712) +++ configure.ac (working copy) @@ -101,10 +101,14 @@ # pthread (not needed on Windows) if test "$os_win32" = "no"; then -AC_CHECK_HEADERS([pthread.h], - AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists]), - AC_MSG_ERROR([pthread support is required to build WebKit])) + AC_CHECK_HEADERS([pthread.h], + AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists]), + AC_MSG_ERROR([pthread support is required to build WebKit])) + PTHREAD_LIBS=-lpthread +else + PTHREAD_LIBS= fi +AC_SUBST([PTHREAD_LIBS]) # check for libjpeg the way Gtk does it. AC_CHECK_LIB(jpeg, jpeg_destroy_decompress, @@ -597,8 +601,8 @@ AC_MSG_CHECKING([whether to enable optimized memory allocator]) AC_ARG_ENABLE(fast_malloc, AC_HELP_STRING([--enable-fast-malloc], - [enable optimized memory allocator default=yes, default=no for debug builds]), - [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi]) + [enable optimized memory allocator default=yes, default=no for debug builds and for Windows]), + [],[if test "$enable_debug" = "yes" -o "$os_win32" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi]) AC_MSG_RESULT([$enable_fast_malloc]) AC_MSG_CHECKING([whether to enable JIT compilation]) --- WebKitTools/GNUmakefile.am (revision 56613) +++ WebKitTools/GNUmakefile.am (working copy) @@ -1,4 +1,4 @@ -noinst_PROGRAMS += \ +bin_PROGRAMS += \ Programs/GtkLauncher \ Programs/DumpRenderTree @@ -22,7 +22,7 @@ Programs_GtkLauncher_LDADD = \ libwebkit-1.0.la \ $(GTK_LIBS) \ - $(GLIB_LIBS) + $(GLIB_LIBS) -lwinmm Programs_GtkLauncher_LDFLAGS = \ -no-fast-install \ @@ -88,7 +88,7 @@ $(GTK_LIBS) \ $(GLIB_LIBS) \ $(LIBSOUP_LIBS) \ - $(FREETYPE_LIBS) + $(FREETYPE_LIBS) -lwinmm Programs_DumpRenderTree_LDFLAGS = \ -no-fast-install \ --- JavaScriptCore/wtf/TCSpinLock.h (revision 57712) +++ JavaScriptCore/wtf/TCSpinLock.h (working copy) @@ -37,8 +37,6 @@ #include <time.h> /* For nanosleep() */ -#include <sched.h> /* For sched_yield() */ - #if HAVE(STDINT_H) #include <stdint.h> #elif HAVE(INTTYPES_H) @@ -134,7 +132,7 @@ #define SPINLOCK_INITIALIZER { 0 } static void TCMalloc_SlowLock(volatile unsigned int* lockword) { - sched_yield(); // Yield immediately since fast path failed + Sleep(0); // Yield immediately since fast path failed while (true) { int r; #if COMPILER(GCC) --- /dev/null 2009-12-16 00:58:22.000000000 +0100 +++ autogen.sh 2009-12-17 00:52:13.000000000 +0100 @@ -0,0 +1,63 @@ +#! /bin/sh + +# Allow invocation from a separate build directory; in that case, we change +# to the source directory to run the auto*, then change back before running configure +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + +GTKDOCIZE_FLAGS="--copy" +LIBTOOLIZE_FLAGS="--force --automake" +ACLOCAL_FLAGS="-I autotools" +AUTOMAKE_FLAGS="--foreign --add-missing" + +DIE=0 + +(autoconf --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "You must have autoconf installed to compile $PROJECT." + echo "Install the appropriate package for your distribution," + echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/" + DIE=1 +} + +(automake --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "You must have automake installed to compile $PROJECT." + echo "Install the appropriate package for your distribution," + echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/" + DIE=1 +} + +LIBTOOLIZE=libtoolize +($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || { + LIBTOOLIZE=glibtoolize + ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "You must have libtool installed to compile $PROJECT." + echo "Install the appropriate package for your distribution," + echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/" + DIE=1 + } +} + +if test "$DIE" -eq 1; then + exit 1 +fi + +rm -rf $top_srcdir/autom4te.cache + +touch README INSTALL + +gtkdocize $GTKDOCIZE_FLAGS > /dev/null 2>&1 || echo "Warning: not running gtk-docize." +aclocal $ACLOCAL_FLAGS || exit $? +$LIBTOOLIZE $LIBTOOLIZE_FLAGS || exit $? +autoheader || exit $? +automake $AUTOMAKE_FLAGS || exit $? +autoconf || exit $? + +cd $ORIGDIR || exit 1 + +$srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor