Seems to be being worked on, an attribute @_cdecl has been merged into master [0] and seems to compile in the current beta of 3.0 [1] although I haven&#x27;t tested it.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;apple&#x2F;swift&#x2F;commit&#x2F;013aad13d4245a012cfb762b7edccf92013b3609" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;apple&#x2F;swift&#x2F;commit&#x2F;013aad13d4245a012cfb76...</a><p>[1] <a href="http:&#x2F;&#x2F;swiftlang.ng.bluemix.net&#x2F;#&#x2F;repl&#x2F;d68be430e72609717f718006aa0ae137eae872ca7a0b7e8141b351770b0c9eac" rel="nofollow">http:&#x2F;&#x2F;swiftlang.ng.bluemix.net&#x2F;#&#x2F;repl&#x2F;d68be430e72609717f718...</a>