From 89b31b6592ab978a1b31f50d70aefdd016c188d0 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Thu, 29 Sep 2016 11:48:09 -0700 Subject: [PATCH] Don't use #import when #include will do Clang's MSVC compatibility does not handle #import statements outside of of objc. #import of type library is an unsupported Microsoft feature --- CoreFoundation/Base.subproj/CoreFoundation_Prefix.h | 4 ++-- CoreFoundation/Base.subproj/ForFoundationOnly.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CoreFoundation/Base.subproj/CoreFoundation_Prefix.h b/CoreFoundation/Base.subproj/CoreFoundation_Prefix.h index 08149a7599..9095fb44ef 100644 --- a/CoreFoundation/Base.subproj/CoreFoundation_Prefix.h +++ b/CoreFoundation/Base.subproj/CoreFoundation_Prefix.h @@ -73,8 +73,8 @@ typedef char * Class; #endif #if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED || DEPLOYMENT_TARGET_EMBEDDED_MINI -#import -#import +#include +#include #endif /* This macro creates some helper functions which are useful in dealing with libdispatch: diff --git a/CoreFoundation/Base.subproj/ForFoundationOnly.h b/CoreFoundation/Base.subproj/ForFoundationOnly.h index f3e4c8d073..4dba6fccd6 100644 --- a/CoreFoundation/Base.subproj/ForFoundationOnly.h +++ b/CoreFoundation/Base.subproj/ForFoundationOnly.h @@ -61,10 +61,10 @@ CF_IMPLICIT_BRIDGING_DISABLED #if INCLUDE_OBJC -#import +#include #endif #if DEPLOYMENT_TARGET_MACOSX && !LIBAUTO_STUB -#import +#include #endif // ---- CFBundle material ----------------------------------------