import Foundation @_exported import AppKit // Fix the ARGV type of NSApplicationMain, which nonsensically takes // argv as a const char**. public func NSApplicationMain( _ argc: Int32, _ argv: UnsafeMutablePointer?> ) -> Int32 { return argv.withMemoryRebound(to:UnsafePointer.self, capacity: Int(argc)) { argv in return __NSApplicationMain(argc, argv) }) }