Skip to content

Commit

Permalink
Merge pull request #40 from ryoissy/fix/define_macro_android_api
Browse files Browse the repository at this point in the history
fix __ANDROID_API__ macro
  • Loading branch information
funa-tk authored Feb 9, 2024
2 parents 24baa04 + 6406567 commit 411d3a9
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 411d3a9

Please sign in to comment.