Skip to content

Commit

Permalink
fix __ANDROID_API__ macro
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoissy committed Feb 9, 2024
1 parent 4a8306f commit 6406567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Basic/Targets/OSTargets.h
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ class LLVM_LIBRARY_VISIBILITY LinuxTargetInfo : public OSTargetInfo<Target> {
Builder.defineMacro("__ANDROID_MIN_SDK_VERSION__", Twine(Maj));
// This historical but ambiguous name for the minSdkVersion macro. Keep
// defined for compatibility.
Builder.defineMacro("__ANDROID_API__", "__ANDROID_MIN_SDK_VERSION__");
Builder.defineMacro("__ANDROID_API__", Twine(Maj));
}
} else {
Builder.defineMacro("__gnu_linux__");
Expand Down

0 comments on commit 6406567

Please sign in to comment.