Changeset 416
- Timestamp:
- 07/24/08 19:31:53 (4 months ago)
- Files:
-
- trunk/BAL/Base/wtf/Platform.h (modified) (1 diff)
- trunk/BAL/ChangeLogOWB (modified) (1 diff)
- trunk/BAL/scripts/patches/Platform.patch (modified) (1 diff)
- trunk/WebKit/ChangeLogOWB (modified) (1 diff)
- trunk/WebKit/OrigynWebBrowser/Api/WebView.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/BAL/Base/wtf/Platform.h
r404 r416 56 56 #if defined(__OWBAL_PLATFORM_MACPORT__) 57 57 #undef WTF_PLATFORM_MAC 58 #define WTF_PLATFORM_MACPORT 58 #define WTF_PLATFORM_MACPORT 1 59 59 #endif 60 60 trunk/BAL/ChangeLogOWB
r415 r416 1 2008-07-24 Jean-Charles Verdié <jcverdie@pleyo.com> 2 3 Reviewed by Mario Bensi. 4 Incorrect DEFINE of MACPORT 5 6 * Base/wtf/Platform.h: 7 1 8 2008-07-24 Olivier DOLE <odole@pleyo.com> 2 9 trunk/BAL/scripts/patches/Platform.patch
r396 r416 26 26 +#if defined(__OWBAL_PLATFORM_MACPORT__) 27 27 +#undef WTF_PLATFORM_MAC 28 +#define WTF_PLATFORM_MACPORT 28 +#define WTF_PLATFORM_MACPORT 1 29 29 +#endif 30 30 + trunk/WebKit/ChangeLogOWB
r415 r416 1 2008-07-24 Jean-Charles Verdié <jcverdie@pleyo.com> 2 3 Reviewed by Mario Bensi. 4 Adapt sysinfo code for MacOS with sysctl, 5 Change incorrect not-ifdef'd includes 6 Change improper direct reference to __OWBAL_PLATFORM_MACPORT__ in very old code 7 8 * OrigynWebBrowser/Api/WebView.cpp: 9 (WebView::setCacheModel): 10 (WebView::userAgentForKURL): 11 1 12 2008-07-24 Olivier DOLE <odole@pleyo.com> 2 13 trunk/WebKit/OrigynWebBrowser/Api/WebView.cpp
r415 r416 105 105 #include DEEPSEE_INCLUDE 106 106 107 #if PLATFORM(MACPORT) 108 #include <sys/types.h> 109 #include <sys/sysctl.h> 110 #elif PLATFORM(AMIGAOS4) 111 #include <intuition/intuition.h> 112 #else 107 113 #include <sys/sysinfo.h> 108 109 #if PLATFORM(AMIGAOS4)110 #include <intuition/intuition.h>111 114 #endif 112 115 … … 307 310 unsigned long long diskFreeSize = 4096; 308 311 309 #if !PLATFORM(AMIGAOS4) 312 #if PLATFORM(MACPORT) 313 unsigned int physmem; 314 size_t len = sizeof physmem; 315 static int mib[2] = { CTL_HW, HW_PHYSMEM }; 316 static size_t miblen = sizeof(mib) / sizeof(mib[0]); 317 318 if (sysctl (mib, miblen, &physmem, &len, NULL, 0) == 0 && len == sizeof (physmem)) 319 memSize=physmem / (1024*1024); 320 #elif 310 321 struct sysinfo info; 311 322 memset(&info, 0, sizeof(info)); … … 872 883 873 884 if (!m_userAgentStandard.length()) 874 #if def __OWBAL_PLATFORM_MACPORT__885 #if PLATFORM(MACPORT) 875 886 //We use the user agent from safari to avoid the rejection from google services (google docs, gmail, etc...) 876 887 m_userAgentStandard = "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; fr) AppleWebKit/522.11 (KHTML, like Gecko) Safari/412 OWB/Doduo";
