Skip to content
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

Android: fixes build NDK 21d #5155

Merged
merged 1 commit into from
Dec 31, 2021
Merged

Android: fixes build NDK 21d #5155

merged 1 commit into from
Dec 31, 2021

Conversation

ericoporto
Copy link
Contributor

Adds stdbool.h header to prevent build error with NDK 21d.

Description

Currently with NDK 21d I am hitting

  In file included from _deps/sdl2_content-src/src/audio/aaudio/SDL_aaudio.c:29:
  In file included from _deps/sdl2_content-src/src/audio/aaudio/SDL_aaudio.h:27:
  /opt/android-sdk-linux/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/aaudio/AAudio.h:809:9: error: unknown type name 'bool'
          bool privacySensitive) __INTRODUCED_IN(30);
          ^
  /opt/android-sdk-linux/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/aaudio/AAudio.h:1527:12: error: unknown type name 'bool'
  AAUDIO_API bool AAudioStream_isPrivacySensitive(AAudioStream* stream)

This appears to be a bug in NDK itself. It's currently possible to workaround by adding the header here in this PR.

Existing Issue(s)

android/ndk#1281

@slouken slouken merged commit d0de4c6 into libsdl-org:main Dec 31, 2021
@ericoporto ericoporto deleted the patch-1 branch December 31, 2021 23:04
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