[Openmp-commits] [openmp] 446a84a - [OpenMP] Simplify GNU strerror_r check for Android (#148990)
via Openmp-commits
openmp-commits at lists.llvm.org
Sat Jul 18 22:28:14 PDT 2026
Author: Brad Smith
Date: 2026-07-19T01:28:10-04:00
New Revision: 446a84a7c66eda9b945a000ccab04948f240eaaa
URL: https://github.com/llvm/llvm-project/commit/446a84a7c66eda9b945a000ccab04948f240eaaa
DIFF: https://github.com/llvm/llvm-project/commit/446a84a7c66eda9b945a000ccab04948f240eaaa.diff
LOG: [OpenMP] Simplify GNU strerror_r check for Android (#148990)
Android 6 is the baseline so simplify the Android check.
Added:
Modified:
openmp/runtime/src/kmp_i18n.cpp
Removed:
################################################################################
diff --git a/openmp/runtime/src/kmp_i18n.cpp b/openmp/runtime/src/kmp_i18n.cpp
index f93e2b9f9592f..8d84f6e563802 100644
--- a/openmp/runtime/src/kmp_i18n.cpp
+++ b/openmp/runtime/src/kmp_i18n.cpp
@@ -708,9 +708,7 @@ static char *sys_error(int err) {
int strerror_r( int, char *, size_t ); // XSI version
*/
-#if (defined(__GLIBC__) && defined(_GNU_SOURCE)) || \
- (defined(__BIONIC__) && defined(_GNU_SOURCE) && \
- __ANDROID_API__ >= __ANDROID_API_M__)
+#if (defined(__GLIBC__) || defined(__BIONIC__)) && defined(_GNU_SOURCE)
// GNU version of strerror_r.
char buffer[2048];
More information about the Openmp-commits
mailing list