mirror of
https://github.com/LIJI32/SameBoy.git
synced 2026-10-11 22:19:50 +00:00
Explicit weak import
This commit is contained in:
@@ -33,6 +33,7 @@ static const vector_float2 rect[] =
|
||||
#if TARGET_OS_IPHONE
|
||||
return true;
|
||||
#else
|
||||
extern NSArray <id<MTLDevice>> *MTLCopyAllDevices(void) __attribute__((weak_import));
|
||||
if (MTLCopyAllDevices) {
|
||||
return [MTLCopyAllDevices() count];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user