mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[embedded] Use @_extern(c) instead of @_silgen_name for putchar in tests
Using inconsistent attributes between stdlib and tests causes compilation errors. There are still several misuses of @_silgen_name in tests, but leaving them as is for now to incrementally fix them.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
// REQUIRES: executable_test
|
||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
||||
|
||||
@_silgen_name("putchar")
|
||||
@_extern(c, "putchar")
|
||||
@discardableResult
|
||||
func putchar(_: CInt) -> CInt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user