[PATCH] D46558: Condition usage of locale stdlib functions on Android API version

Tom Anderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 15 15:17:53 PDT 2018


thomasanderson added a comment.

I hope my understanding is correct -- in the latest patch, the behavior is:

- if __NDK_MAJOR__ > 16
  - do nothing
- otherwise
  - if __ANDROID_API__ < 21
    - Fallback to __strtonum_fallback.h which provides 7 locale stdlib functions
  - otherwise if __ANDROID_API__ < 26
    - Add only 3 missing locale stdlib functions


https://reviews.llvm.org/D46558





More information about the llvm-commits mailing list