Skip to content

Commit b0d764d

Browse files
kastiglioneparkera
authored andcommitted
Don't use #import when #include will do (#663)
Clang's MSVC compatibility does not handle #import statements outside of of objc. #import of type library is an unsupported Microsoft feature
1 parent e05884b commit b0d764d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CoreFoundation/Base.subproj/CoreFoundation_Prefix.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ typedef char * Class;
7373
#endif
7474

7575
#if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED || DEPLOYMENT_TARGET_EMBEDDED_MINI
76-
#import <libkern/OSAtomic.h>
77-
#import <pthread.h>
76+
#include <libkern/OSAtomic.h>
77+
#include <pthread.h>
7878
#endif
7979

8080
/* This macro creates some helper functions which are useful in dealing with libdispatch:

CoreFoundation/Base.subproj/ForFoundationOnly.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ CF_IMPLICIT_BRIDGING_DISABLED
6161

6262

6363
#if INCLUDE_OBJC
64-
#import <objc/message.h>
64+
#include <objc/message.h>
6565
#endif
6666
#if DEPLOYMENT_TARGET_MACOSX && !LIBAUTO_STUB
67-
#import <objc/objc-auto.h>
67+
#include <objc/objc-auto.h>
6868
#endif
6969

7070
// ---- CFBundle material ----------------------------------------

0 commit comments

Comments
 (0)