Changeset 196239 in webkit


Ignore:
Timestamp:
Feb 7, 2016 10:44:25 AM (8 years ago)
Author:
mitz@apple.com
Message:

[Cocoa] Replace has_include guards around inclusion of Apple-internal-SDK headers with USE(APPLE_INTERNAL_SDK)
https://bugs.webkit.org/show_bug.cgi?id=153963

Reviewed by Sam Weinig.

Source/JavaScriptCore:

  • inspector/remote/RemoteInspectorXPCConnection.mm:

Source/WebCore:

  • accessibility/mac/AXObjectCacheMac.mm:
  • crypto/CommonCryptoUtilities.cpp:
  • crypto/CommonCryptoUtilities.h:
  • editing/mac/TextUndoInsertionMarkupMac.h:
  • editing/mac/TextUndoInsertionMarkupMac.mm:
  • platform/cocoa/TelephoneNumberDetectorCocoa.cpp:
  • platform/graphics/cg/ImageSourceCG.cpp:
  • platform/graphics/mac/PDFDocumentImageMac.mm:
  • platform/network/ios/NetworkStateNotifierIOS.mm:
  • platform/network/mac/BlobDataFileReferenceMac.mm:
  • platform/network/mac/ResourceHandleMac.mm:
  • rendering/RenderThemeMac.mm:

Source/WebKit/mac:

  • WebView/WebPDFView.mm:

Source/WTF:

  • wtf/SystemTracing.h:
  • wtf/WTFThreadData.h:
  • wtf/spi/darwin/CommonCryptoSPI.h:
Location:
trunk/Source
Files:
21 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r196232 r196239  
     12016-02-07  Dan Bernstein  <mitz@apple.com>
     2
     3        [Cocoa] Replace __has_include guards around inclusion of Apple-internal-SDK headers with USE(APPLE_INTERNAL_SDK)
     4        https://bugs.webkit.org/show_bug.cgi?id=153963
     5
     6        Reviewed by Sam Weinig.
     7
     8        * inspector/remote/RemoteInspectorXPCConnection.mm:
     9
    1102016-02-06  Filip Pizlo  <fpizlo@apple.com>
    211
  • trunk/Source/JavaScriptCore/inspector/remote/RemoteInspectorXPCConnection.mm

    r194005 r196239  
    3838#import <wtf/spi/darwin/XPCSPI.h>
    3939
    40 #if __has_include(<CoreFoundation/CFXPCBridge.h>)
     40#if USE(APPLE_INTERNAL_SDK)
    4141#import <CoreFoundation/CFXPCBridge.h>
    4242#else
  • trunk/Source/WTF/ChangeLog

    r196223 r196239  
     12016-02-07  Dan Bernstein  <mitz@apple.com>
     2
     3        [Cocoa] Replace __has_include guards around inclusion of Apple-internal-SDK headers with USE(APPLE_INTERNAL_SDK)
     4        https://bugs.webkit.org/show_bug.cgi?id=153963
     5
     6        Reviewed by Sam Weinig.
     7
     8        * wtf/SystemTracing.h:
     9        * wtf/WTFThreadData.h:
     10        * wtf/spi/darwin/CommonCryptoSPI.h:
     11
    1122016-02-06  Darin Adler  <darin@apple.com>
    213
  • trunk/Source/WTF/wtf/SystemTracing.h

    r195448 r196239  
    2727#define SystemTracing_h
    2828
    29 #if defined(__has_include)
    30 #if __has_include(<System/sys/kdebug.h>)
     29#if USE(APPLE_INTERNAL_SDK)
    3130#include <System/sys/kdebug.h>
    3231#define HAVE_KDEBUG_H 1
    33 #endif
    3432#endif
    3533
  • trunk/Source/WTF/wtf/WTFThreadData.h

    r187026 r196239  
    3535#include <wtf/text/StringHash.h>
    3636
    37 #if OS(DARWIN)
    38 #if defined(__has_include) && __has_include(<System/pthread_machdep.h>)
     37#if USE(APPLE_INTERNAL_SDK)
    3938#include <System/pthread_machdep.h>
    40 #endif
    4139#endif
    4240
  • trunk/Source/WTF/wtf/spi/darwin/CommonCryptoSPI.h

    r189633 r196239  
    2929#if OS(DARWIN)
    3030
    31 #if defined(__has_include)
    32 #if __has_include(<CommonCrypto/CommonRandomSPI.h>)
     31#if USE(APPLE_INTERNAL_SDK)
    3332#include <CommonCrypto/CommonRandomSPI.h>
    34 #endif
    3533#endif
    3634
  • trunk/Source/WebCore/ChangeLog

    r196238 r196239  
     12016-02-07  Dan Bernstein  <mitz@apple.com>
     2
     3        [Cocoa] Replace __has_include guards around inclusion of Apple-internal-SDK headers with USE(APPLE_INTERNAL_SDK)
     4        https://bugs.webkit.org/show_bug.cgi?id=153963
     5
     6        Reviewed by Sam Weinig.
     7
     8        * accessibility/mac/AXObjectCacheMac.mm:
     9        * crypto/CommonCryptoUtilities.cpp:
     10        * crypto/CommonCryptoUtilities.h:
     11        * editing/mac/TextUndoInsertionMarkupMac.h:
     12        * editing/mac/TextUndoInsertionMarkupMac.mm:
     13        * platform/cocoa/TelephoneNumberDetectorCocoa.cpp:
     14        * platform/graphics/cg/ImageSourceCG.cpp:
     15        * platform/graphics/mac/PDFDocumentImageMac.mm:
     16        * platform/network/ios/NetworkStateNotifierIOS.mm:
     17        * platform/network/mac/BlobDataFileReferenceMac.mm:
     18        * platform/network/mac/ResourceHandleMac.mm:
     19        * rendering/RenderThemeMac.mm:
     20
    1212016-02-07  Carlos Garcia Campos  <cgarcia@igalia.com>
    222
  • trunk/Source/WebCore/accessibility/mac/AXObjectCacheMac.mm

    r195949 r196239  
    3535#import "WebCoreSystemInterface.h"
    3636
    37 #if __has_include(<HIServices/AccessibilityPriv.h>)
     37#if USE(APPLE_INTERNAL_SDK)
    3838#include <HIServices/AccessibilityPriv.h>
    3939#endif
  • trunk/Source/WebCore/crypto/CommonCryptoUtilities.cpp

    r160029 r196239  
    2929#if ENABLE(SUBTLE_CRYPTO)
    3030
    31 #if defined(__has_include)
    32 #if __has_include(<CommonCrypto/CommonBigNum.h>)
     31#if USE(APPLE_INTERNAL_SDK)
    3332#include <CommonCrypto/CommonBigNum.h>
    34 #endif
    3533#endif
    3634
  • trunk/Source/WebCore/crypto/CommonCryptoUtilities.h

    r179364 r196239  
    3333#include <wtf/Vector.h>
    3434
    35 #if defined(__has_include)
    36 #if __has_include(<CommonCrypto/CommonRSACryptor.h>)
     35#if USE(APPLE_INTERNAL_SDK)
    3736#include <CommonCrypto/CommonRSACryptor.h>
    38 #endif
    39 #endif
    40 
    41 #if defined(__has_include) && PLATFORM(COCOA)
    42 #if __has_include(<CommonCrypto/CommonRandomSPI.h>)
    4337#include <CommonCrypto/CommonRandomSPI.h>
    44 #endif
    4538#endif
    4639
  • trunk/Source/WebCore/editing/mac/TextUndoInsertionMarkupMac.h

    r172849 r196239  
    2929#if USE(INSERTION_UNDO_GROUPING)
    3030
    31 #if __has_include(<AppKit/NSTextInputContext_Private.h>)
     31#if USE(APPLE_INTERNAL_SDK)
    3232#import <AppKit/NSTextInputContext_Private.h>
    3333#else
  • trunk/Source/WebCore/editing/mac/TextUndoInsertionMarkupMac.mm

    r170447 r196239  
    2727#import "TextUndoInsertionMarkupMac.h"
    2828
    29 #if __has_include(<Foundation/NSUndoManager_Private.h>)
     29#if USE(APPLE_INTERNAL_SDK)
    3030#import <Foundation/NSUndoManager_Private.h>
    3131#else
  • trunk/Source/WebCore/platform/cocoa/TelephoneNumberDetectorCocoa.cpp

    r180126 r196239  
    3131#include "SoftLinking.h"
    3232
    33 #if __has_include(<DataDetectorsCore/DDDFAScanner.h>)
     33#if USE(APPLE_INTERNAL_SDK)
    3434#include <DataDetectorsCore/DDDFAScanner.h>
    3535#else
  • trunk/Source/WebCore/platform/graphics/cg/ImageSourceCG.cpp

    r194318 r196239  
    4545#endif
    4646
    47 #if __has_include(<ImageIO/CGImageSourcePrivate.h>)
     47#if USE(APPLE_INTERNAL_SDK)
    4848#import <ImageIO/CGImageSourcePrivate.h>
    4949#else
  • trunk/Source/WebCore/platform/graphics/mac/PDFDocumentImageMac.mm

    r189144 r196239  
    3636#import <wtf/RetainPtr.h>
    3737
    38 #ifdef __has_include
    39 #if __has_include(<ApplicationServices/ApplicationServicesPriv.h>)
     38#if USE(APPLE_INTERNAL_SDK)
    4039#import <ApplicationServices/ApplicationServicesPriv.h>
    41 #endif
    4240#endif
    4341
  • trunk/Source/WebCore/platform/network/ios/NetworkStateNotifierIOS.mm

    r164757 r196239  
    3030#import "WebCoreThreadRun.h"
    3131
    32 #if defined(__has_include) && __has_include(<AppSupport/CPNetworkObserver.h>)
     32#if USE(APPLE_INTERNAL_SDK)
    3333#import <AppSupport/CPNetworkObserver.h>
    3434#else
  • trunk/Source/WebCore/platform/network/mac/BlobDataFileReferenceMac.mm

    r168518 r196239  
    3333#include <wtf/text/CString.h>
    3434
    35 #if defined(__has_include)
    36 #if __has_include(<Bom/BOMCopier.h>)
     35#if USE(APPLE_INTERNAL_SDK)
    3736#include <Bom/BOMCopier.h>
    38 #endif
    3937#endif
    4038
  • trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm

    r195743 r196239  
    5959
    6060#if USE(CFNETWORK)
    61 #if __has_include(<CFNetwork/CFURLConnectionPriv.h>)
     61#if USE(APPLE_INTERNAL_SDK)
    6262#import <CFNetwork/CFURLConnectionPriv.h>
    6363#endif
  • trunk/Source/WebCore/rendering/RenderThemeMac.mm

    r196036 r196239  
    9393#if ENABLE(SERVICE_CONTROLS) && HAVE(APPKIT_SERVICE_CONTROLS_SUPPORT)
    9494
    95 #if __has_include(<AppKit/AppKitDefines_Private.h>)
     95#if USE(APPLE_INTERNAL_SDK)
    9696#import <AppKit/AppKitDefines_Private.h>
     97#import <AppKit/NSServicesRolloverButtonCell.h>
    9798#else
    9899#define APPKIT_PRIVATE_CLASS
    99 #endif
    100 
    101 #if __has_include(<AppKit/NSServicesRolloverButtonCell.h>)
    102 #import <AppKit/NSServicesRolloverButtonCell.h>
    103 #else
    104100@interface NSServicesRolloverButtonCell : NSButtonCell
    105101@end
  • trunk/Source/WebKit/mac/ChangeLog

    r196223 r196239  
     12016-02-07  Dan Bernstein  <mitz@apple.com>
     2
     3        [Cocoa] Replace __has_include guards around inclusion of Apple-internal-SDK headers with USE(APPLE_INTERNAL_SDK)
     4        https://bugs.webkit.org/show_bug.cgi?id=153963
     5
     6        Reviewed by Sam Weinig.
     7
     8        * WebView/WebPDFView.mm:
     9
    1102016-02-06  Darin Adler  <darin@apple.com>
    211
  • trunk/Source/WebKit/mac/WebView/WebPDFView.mm

    r189749 r196239  
    6868#import <PDFKit/PDFKit.h>
    6969
    70 #ifdef __has_include
    71 #if __has_include(<ApplicationServices/ApplicationServicesPriv.h>)
     70#if USE(APPLE_INTERNAL_SDK)
    7271#import <ApplicationServices/ApplicationServicesPriv.h>
    73 #endif
    7472#endif
    7573
Note: See TracChangeset for help on using the changeset viewer.