[libcxx-commits] [libcxx] [libc++] Skip including langinfo.h on Android (PR #223749)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Sep 15 12:03:28 PDT 2026
https://github.com/google-yfyang updated https://github.com/llvm/llvm-project/pull/223749
>From 4494f29b7dc6a758a1e32f29ccee28392964ec3a Mon Sep 17 00:00:00 2001
From: google-yfyang <yfyang at google.com>
Date: Tue, 15 Sep 2026 12:00:37 -0400
Subject: [PATCH] [libc++] Skip including langinfo.h on Android
---
libcxx/include/__locale_dir/support/linux.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libcxx/include/__locale_dir/support/linux.h b/libcxx/include/__locale_dir/support/linux.h
index 74abf5ab7c598..69f494987e4e3 100644
--- a/libcxx/include/__locale_dir/support/linux.h
+++ b/libcxx/include/__locale_dir/support/linux.h
@@ -17,7 +17,9 @@
#include <cstdio>
#include <cstdlib>
#include <ctype.h>
-#include <langinfo.h>
+#if defined(_LIBCPP_BUILDING_LIBRARY)
+# include <langinfo.h>
+#endif
#include <stdarg.h>
#include <string.h>
#include <time.h>
More information about the libcxx-commits
mailing list