Skip to content

Android: FILE is an opaque struct since API 24#306

Merged
Lukasa merged 1 commit into
apple:mainfrom
finagolfin:droid
Jul 22, 2021
Merged

Android: FILE is an opaque struct since API 24#306
Lukasa merged 1 commit into
apple:mainfrom
finagolfin:droid

Conversation

@finagolfin

Copy link
Copy Markdown
Contributor

Motivation:

Get this Swift file building for Android.

Modifications:

Use an OpaquePointer for FILE* on Android.

Result:

This file builds and all the tests pass on Android.

This change is needed because of aosp-mirror/platform_bionic@3037ea4, as noted on the similar pull swiftlang/swift-tools-support-core#243.

An earlier unconditionally-compiled version of this patch got this package cross-compiled for Android, finagolfin/swift-android-sdk#11, and all the tests passing in the Android emulator, so that I can add it to my daily Android CI next. I also built it on linux to make sure it didn't break anything there.

Motivation:

Get this Swift file building for Android.

Modifications:

Use an OpaquePointer for FILE* on Android.

Result:

This file builds and all the tests pass on Android.
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Jul 22, 2021

@Lukasa Lukasa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this fix!

@Lukasa

Lukasa commented Jul 22, 2021

Copy link
Copy Markdown
Contributor

@swift-nio-bot test this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants