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

fix: android build in 32-bit devices #869

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LucasXu0
Copy link

The _FILE_OFFSET_BITS macro was defined with a default value of 64, which broke the Android 32-bit target build. The error is shown below.

  cargo:warning=/Users/lucas.xu/Library/Android/sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/fstream:973:20: error: use of undeclared identifier 'ftello'; did you mean 'ftell'?
  cargo:warning=    pos_type __r = ftello(__file_);
  cargo:warning=                   ^
  cargo:warning=/Users/lucas.xu/Library/Android/sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1/cstdio:151:9: note: 'ftell' declared here
  cargo:warning=using ::ftell _LIBCPP_USING_IF_EXISTS;

@LucasXu0
Copy link
Author

Screenshot 2024-03-20 at 10 47 20

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.

None yet

1 participant