https://bugs.webkit.org/show_bug.cgi?id=153774
Reviewed by Tim Horton.
Guard private header includes with #if USE(APPLE_INTERNAL_SDK) rather than with __has_include.
* Platform/IPC/mac/ConnectionMac.mm:
* Platform/IPC/mac/ImportanceAssertion.h:
* Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.h:
* Shared/cf/ArgumentCodersCF.cpp:
* Shared/mac/ChildProcessMac.mm:
* Shared/mac/SecItemShim.cpp:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195985
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
2016-02-01 Dan Bernstein <mitz@apple.com>
+ [Cocoa] Remove some more __has_include guards
+ https://bugs.webkit.org/show_bug.cgi?id=153774
+
+ Reviewed by Tim Horton.
+
+ Guard private header includes with #if USE(APPLE_INTERNAL_SDK) rather than with __has_include.
+
+ * Platform/IPC/mac/ConnectionMac.mm:
+ * Platform/IPC/mac/ImportanceAssertion.h:
+ * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.h:
+ * Shared/cf/ArgumentCodersCF.cpp:
+ * Shared/mac/ChildProcessMac.mm:
+ * Shared/mac/SecItemShim.cpp:
+
+2016-02-01 Dan Bernstein <mitz@apple.com>
+
[Xcode] Let Xcode know that the WebKit XPC service products are XPC services
https://bugs.webkit.org/show_bug.cgi?id=153773
#include "ProcessAssertion.h"
#include <UIKit/UIAccessibility.h>
-#if __has_include(<AXRuntime/AXNotificationConstants.h>)
+#if USE(APPLE_INTERNAL_SDK)
#include <AXRuntime/AXDefines.h>
#include <AXRuntime/AXNotificationConstants.h>
#else
#endif
-#if __has_include(<HIServices/AccessibilityPriv.h>)
+#if USE(APPLE_INTERNAL_SDK)
#include <HIServices/AccessibilityPriv.h>
#else
typedef enum {
#if PLATFORM(MAC)
-#if __has_include(<libproc_internal.h>)
+#if USE(APPLE_INTERNAL_SDK)
#include <libproc_internal.h>
#endif
#import <wtf/spi/darwin/XPCSPI.h>
#if HAVE(VOUCHERS)
-#if __has_include(<os/voucher_private.h>)
+#if USE(APPLE_INTERNAL_SDK)
#include <os/voucher_private.h>
#else
extern "C" OS_NOTHROW void voucher_replace_default_voucher(void);
#import <Foundation/Foundation.h>
#endif
-#if defined(__has_include) && __has_include(<Security/SecIdentityPriv.h>)
+#if USE(APPLE_INTERNAL_SDK)
#include <Security/SecIdentityPriv.h>
#endif
extern "C" SecIdentityRef SecIdentityCreate(CFAllocatorRef allocator, SecCertificateRef certificate, SecKeyRef privateKey);
#if PLATFORM(IOS)
-#if defined(__has_include) && __has_include(<Security/SecKeyPriv.h>)
+#if USE(APPLE_INTERNAL_SDK)
#include <Security/SecKeyPriv.h>
#endif
#endif
#if HAVE(SEC_ACCESS_CONTROL)
-#if defined(__has_include) && __has_include(<Security/SecAccessControlPriv.h>)
+#if USE(APPLE_INTERNAL_SDK)
#include <Security/SecAccessControlPriv.h>
#endif
#import <wtf/cf/TypeCastsCF.h>
#import <wtf/spi/darwin/SandboxSPI.h>
-#ifdef __has_include
-#if __has_include(<HIServices/ProcessesPriv.h>)
+#if USE(APPLE_INTERNAL_SDK)
#include <HIServices/ProcessesPriv.h>
#endif
-#endif
typedef bool (^LSServerConnectionAllowedBlock) ( CFDictionaryRef optionsRef );
extern "C" void _LSSetApplicationLaunchServicesServerConnectionStatus(uint64_t flags, LSServerConnectionAllowedBlock block);
#include <mutex>
#include <wtf/NeverDestroyed.h>
-#if __has_include(<CFNetwork/CFURLConnectionPriv.h>)
+#if USE(APPLE_INTERNAL_SDK)
#include <CFNetwork/CFURLConnectionPriv.h>
#else
struct _CFNFrameworksStubs {