From 640656734a7a94909e76af3d0c81b390be6efff5 Mon Sep 17 00:00:00 2001 From: ryo-ishizuka Date: Fri, 9 Feb 2024 12:38:26 +0900 Subject: [PATCH] fix __ANDROID_API__ macro --- clang/lib/Basic/Targets/OSTargets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Basic/Targets/OSTargets.h b/clang/lib/Basic/Targets/OSTargets.h index 2d1a33ad9c0b..71bc0018d4aa 100755 --- a/clang/lib/Basic/Targets/OSTargets.h +++ b/clang/lib/Basic/Targets/OSTargets.h @@ -378,7 +378,7 @@ class LLVM_LIBRARY_VISIBILITY LinuxTargetInfo : public OSTargetInfo { 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__");