Skip to content

Commit

Permalink
Make symbol visible
Browse files Browse the repository at this point in the history
  • Loading branch information
brianquinlan committed Nov 26, 2024
1 parent 03310f5 commit 862fbde
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 21 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
#import "utils.h"
#import <Foundation/NSLock.h>
#import <Foundation/NSURL.h>
#import <Foundation/NSURLSession.h>
#include <stdint.h>

_DidFinish adaptFinishWithLock(_DidFinishWithLock block) {
#if !__has_feature(objc_arc)
#error "This file must be compiled with ARC enabled"
#endif

typedef void (^_DidFinish)(void *closure, NSURLSession *session,
NSURLSessionDownloadTask *downloadTask,
NSURL *location);
typedef void (^_DidFinishWithLock)(NSCondition *lock, NSURLSession *session,
NSURLSessionDownloadTask *downloadTask,
NSURL *location);

__attribute__((visibility("default"))) __attribute__((used)) _DidFinish
adaptFinishWithLock(_DidFinishWithLock block) {
return ^void(void *closure, NSURLSession *session,
NSURLSessionDownloadTask *downloadTask, NSURL *location) {
NSCondition *lock = [[NSCondition alloc] init];
Expand Down

0 comments on commit 862fbde

Please sign in to comment.