Skip to content

Commit 8e5e32b

Browse files
committed
test: use #include rather than #import
`#import` is an extension which behaves differently in different target. On Windows, it is used to import type libraries (for COM). The options are to either use `#include` or enable Objective-C interop. Use the former since there is no Objective-C specific behaviour needed here.
1 parent a67f3b9 commit 8e5e32b

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#import <ExportAsCoreKit.h>
1+
#include <ExportAsCoreKit.h>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
#ifndef EXPORT_AS_COREKIT_H
2+
#define EXPORT_AS_COREKIT_H
3+
14
struct CKThing {
25
long value;
36
};
7+
8+
#endif
9+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#import <ExportAsCoreKit.h>
1+
#include <ExportAsCoreKit.h>

0 commit comments

Comments
 (0)