Skip to content

Commit b32d4ed

Browse files
authored
Merge pull request #171 from Code-Hex/add/ci-build-check-intel
fixed compile issue on macOS 12
2 parents d2ef438 + 1f1e9a7 commit b32d4ed

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

virtualization_14.h

+2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ void *newVZNVMExpressControllerDeviceConfiguration(void *attachment);
2222
void *newVZDiskBlockDeviceStorageDeviceAttachment(int fileDescriptor, bool readOnly, int syncMode, void **error);
2323
void *newVZNetworkBlockDeviceStorageDeviceAttachment(const char *url, double timeout, bool forcedReadOnly, int syncMode, void **error, uintptr_t cgoHandle);
2424

25+
#ifdef INCLUDE_TARGET_OSX_14
2526
@interface VZNetworkBlockDeviceStorageDeviceAttachmentDelegateImpl : NSObject <VZNetworkBlockDeviceStorageDeviceAttachmentDelegate>
2627
- (instancetype)initWithHandle:(uintptr_t)cgoHandle;
2728
- (void)attachment:(VZNetworkBlockDeviceStorageDeviceAttachment *)attachment didEncounterError:(NSError *)error API_AVAILABLE(macos(14.0));
2829
- (void)attachmentWasConnected:(VZNetworkBlockDeviceStorageDeviceAttachment *)attachment API_AVAILABLE(macos(14.0));
2930
@end
31+
#endif

virtualization_14.m

+2
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
RAISE_UNSUPPORTED_MACOS_EXCEPTION();
9292
}
9393

94+
#ifdef INCLUDE_TARGET_OSX_14
9495
@implementation VZNetworkBlockDeviceStorageDeviceAttachmentDelegateImpl {
9596
uintptr_t _cgoHandle;
9697
}
@@ -112,3 +113,4 @@ - (void)attachmentWasConnected:(VZNetworkBlockDeviceStorageDeviceAttachment *)at
112113
attachmentWasConnectedHandler(_cgoHandle);
113114
}
114115
@end
116+
#endif

0 commit comments

Comments
 (0)