Changeset 416

Show
Ignore:
Timestamp:
07/24/08 19:31:53 (4 months ago)
Author:
jcverdie
Message:

BAL:

2008-07-24 Jean-Charles Verdié <jcverdie@pleyo.com>

Reviewed by Mario Bensi.
Incorrect DEFINE of MACPORT

  • Base/wtf/Platform.h:

WebKit:

2008-07-24 Jean-Charles Verdié <jcverdie@pleyo.com>

Reviewed by Mario Bensi.
Adapt sysinfo code for MacOS with sysctl,
Change incorrect not-ifdef'd includes
Change improper direct reference to OWBAL_PLATFORM_MACPORT in very old code

  • OrigynWebBrowser/Api/WebView.cpp:
    (WebView::setCacheModel):
    (WebView::userAgentForKURL):
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/BAL/Base/wtf/Platform.h

    r404 r416  
    5656#if defined(__OWBAL_PLATFORM_MACPORT__) 
    5757#undef WTF_PLATFORM_MAC 
    58 #define WTF_PLATFORM_MACPORT 
     58#define WTF_PLATFORM_MACPORT 1 
    5959#endif 
    6060 
  • trunk/BAL/ChangeLogOWB

    r415 r416  
     12008-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 
    182008-07-24  Olivier DOLE  <odole@pleyo.com> 
    29 
  • trunk/BAL/scripts/patches/Platform.patch

    r396 r416  
    2626+#if defined(__OWBAL_PLATFORM_MACPORT__) 
    2727+#undef WTF_PLATFORM_MAC 
    28 +#define WTF_PLATFORM_MACPORT 
     28+#define WTF_PLATFORM_MACPORT 1 
    2929+#endif 
    3030+ 
  • trunk/WebKit/ChangeLogOWB

    r415 r416  
     12008-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 
    1122008-07-24  Olivier DOLE  <odole@pleyo.com> 
    213 
  • trunk/WebKit/OrigynWebBrowser/Api/WebView.cpp

    r415 r416  
    105105#include DEEPSEE_INCLUDE 
    106106 
     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 
    107113#include <sys/sysinfo.h> 
    108  
    109 #if PLATFORM(AMIGAOS4) 
    110 #include <intuition/intuition.h> 
    111114#endif 
    112115 
     
    307310    unsigned long long diskFreeSize = 4096; 
    308311     
    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 
    310321    struct sysinfo info; 
    311322    memset(&info, 0, sizeof(info)); 
     
    872883 
    873884    if (!m_userAgentStandard.length()) 
    874 #ifdef __OWBAL_PLATFORM_MACPORT__ 
     885#if PLATFORM(MACPORT) 
    875886        //We use the user agent from safari to avoid the rejection from google services (google docs, gmail, etc...) 
    876887        m_userAgentStandard =  "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; fr) AppleWebKit/522.11 (KHTML, like Gecko) Safari/412 OWB/Doduo";