[all-commits] [llvm/llvm-project] 084904: Add a less ambiguous macro for Android version.

Dan Albert via All-commits all-commits at lists.llvm.org
Wed Dec 2 13:26:49 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0849047860a343d8bcf1f828a82d585e89079943
      https://github.com/llvm/llvm-project/commit/0849047860a343d8bcf1f828a82d585e89079943
  Author: Dan Albert <danalbert at google.com>
  Date:   2020-12-02 (Wed, 02 Dec 2020)

  Changed paths:
    M clang/lib/Basic/Targets/OSTargets.h
    M clang/test/Preprocessor/init.c

  Log Message:
  -----------
  Add a less ambiguous macro for Android version.

Android has a handful of API levels relevant to developers described
here: https://developer.android.com/studio/build#module-level.
`__ANDROID_API__` is too vague and confuses a lot of people. Introduce
a new macro name that is explicit about which one it represents. Keep
the old name around because code has been using it for a decade.




More information about the All-commits mailing list