Skip to content

Decimal bin compat: remove the usage of @_cdecl from 'public' methods defined in NSDecimal.h #880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

iCharlesHu
Copy link
Contributor

Rationale: @_cdecl emits a C symbol that calls back to the Swift symbol. These new swift symbols does not exist on older OSs, causing a crash due to sym bol not found. Instead of using @_cdecl to implement public methods directly, use it on an internal type so it will not introduce unexpected public symbols.

resolves: rdar://133371820

… defined in NSDecimal.h

Rationale: @_cdecl emits a C symbol that calls back to the Swift symbol. These new swift symbols does not exist on older OSs, causing a crash due to sym
bol not found. Instead of using @_cdecl to implement public methods directly, use it on an internal type so it will not introduce unexpected public symbols.

resolves: rdar://133371820
@iCharlesHu iCharlesHu requested a review from jmschonfeld August 21, 2024 01:02
@iCharlesHu iCharlesHu marked this pull request as ready for review August 21, 2024 01:02
@iCharlesHu
Copy link
Contributor Author

@swift-ci please test

@iCharlesHu iCharlesHu merged commit e34e1c9 into swiftlang:main Aug 21, 2024
3 checks passed
@iCharlesHu iCharlesHu deleted the charles/decimal-bin-compat branch August 21, 2024 15:40
cthielen pushed a commit to cthielen/swift-foundation that referenced this pull request Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants