Changeset 171857 in webkit


Ignore:
Timestamp:
Jul 31, 2014, 9:41:40 AM (11 years ago)
Author:
mitz@apple.com
Message:

Tried to fix building with the OS X 10.9 SDK while targeting OS X 10.8.

  • platform/network/cocoa/CredentialCocoa.mm:

(WebCore::toCredentialPersistence):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r171855 r171857  
     12014-07-31  Dan Bernstein  <mitz@apple.com>
     2
     3        Tried to fix building with the OS X 10.9 SDK while targeting OS X 10.8.
     4
     5        * platform/network/cocoa/CredentialCocoa.mm:
     6        (WebCore::toCredentialPersistence):
     7
    182014-07-31  Dan Bernstein  <mitz@apple.com>
    29
  • trunk/Source/WebCore/platform/network/cocoa/CredentialCocoa.mm

    r171855 r171857  
    2626#import "config.h"
    2727#import "CredentialCocoa.h"
     28
     29#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED == 1080
     30// This value is available in OS X 10.8 but only appeared in the OS X 10.9 SDK.
     31enum {
     32    NSURLCredentialPersistenceSynchronizable = 3
     33};
     34#endif
    2835
    2936#if USE(CFNETWORK)
     
    5966        return CredentialPersistenceForSession;
    6067    case NSURLCredentialPersistencePermanent:
    61 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
     68#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED == 1080
     69#pragma clang diagnostic push
     70#pragma clang diagnostic ignored "-Wswitch"
     71#endif
    6272    case NSURLCredentialPersistenceSynchronizable:
     73#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED == 1080
     74#pragma clang diagnostic pop
    6375#endif
    6476        return CredentialPersistencePermanent;
Note: See TracChangeset for help on using the changeset viewer.