Skip to content

Commit

Permalink
[ObjCExport] Proper fix for OBJC_OLD_DISPATCH_PROTOTYPES
Browse files Browse the repository at this point in the history
  • Loading branch information
sbogolepov committed May 18, 2020
1 parent 37bf7d7 commit 2b47ee0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ internal class ObjCExportCodeGenerator(
)
}

private val impType = pointerType(functionType(int8TypePtr, true, int8TypePtr, int8TypePtr))
private val impType = pointerType(functionType(voidType, false))

internal val directMethodAdapters = mutableMapOf<DirectAdapterRequest, ObjCToKotlinMethodAdapter>()

Expand Down
2 changes: 0 additions & 2 deletions runtime/src/main/cpp/ObjCExport.mm
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

#if KONAN_OBJC_INTEROP

#define OBJC_OLD_DISPATCH_PROTOTYPES 1

#import <Foundation/NSObject.h>
#import <Foundation/NSValue.h>
#import <Foundation/NSString.h>
Expand Down
2 changes: 0 additions & 2 deletions runtime/src/objc/cpp/ObjCExportClasses.mm
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

#if KONAN_OBJC_INTEROP

#define OBJC_OLD_DISPATCH_PROTOTYPES 1

#import <Foundation/NSObject.h>
#import <Foundation/NSValue.h>
#import <Foundation/NSString.h>
Expand Down

0 comments on commit 2b47ee0

Please sign in to comment.