diff --git a/virtualization_14.h b/virtualization_14.h index c962269..97d06c1 100644 --- a/virtualization_14.h +++ b/virtualization_14.h @@ -22,8 +22,10 @@ void *newVZNVMExpressControllerDeviceConfiguration(void *attachment); void *newVZDiskBlockDeviceStorageDeviceAttachment(int fileDescriptor, bool readOnly, int syncMode, void **error); void *newVZNetworkBlockDeviceStorageDeviceAttachment(const char *url, double timeout, bool forcedReadOnly, int syncMode, void **error, uintptr_t cgoHandle); +#ifdef INCLUDE_TARGET_OSX_14 @interface VZNetworkBlockDeviceStorageDeviceAttachmentDelegateImpl : NSObject - (instancetype)initWithHandle:(uintptr_t)cgoHandle; - (void)attachment:(VZNetworkBlockDeviceStorageDeviceAttachment *)attachment didEncounterError:(NSError *)error API_AVAILABLE(macos(14.0)); - (void)attachmentWasConnected:(VZNetworkBlockDeviceStorageDeviceAttachment *)attachment API_AVAILABLE(macos(14.0)); @end +#endif diff --git a/virtualization_14.m b/virtualization_14.m index 9fbe6e4..b6970f0 100644 --- a/virtualization_14.m +++ b/virtualization_14.m @@ -91,6 +91,7 @@ RAISE_UNSUPPORTED_MACOS_EXCEPTION(); } +#ifdef INCLUDE_TARGET_OSX_14 @implementation VZNetworkBlockDeviceStorageDeviceAttachmentDelegateImpl { uintptr_t _cgoHandle; } @@ -112,3 +113,4 @@ - (void)attachmentWasConnected:(VZNetworkBlockDeviceStorageDeviceAttachment *)at attachmentWasConnectedHandler(_cgoHandle); } @end +#endif