From 794f0c2ce93355bdf29341b89436218c6d94e77a Mon Sep 17 00:00:00 2001 From: nicolasWDC Date: Mon, 8 Jun 2026 20:07:31 +0000 Subject: [PATCH] include/cxx/ctime: Add localtime to std namespace. NuttX time.h declares localtime in the global namespace, but the C++ ctime shim does not import it into namespace std. As a result, valid C++ code using std::localtime fails to compile with the NuttX C++ headers, even though ::localtime is available. Add using ::localtime to include/cxx/ctime. Signed-off-by: nicolasWDC --- include/cxx/ctime | 1 + 1 file changed, 1 insertion(+) diff --git a/include/cxx/ctime b/include/cxx/ctime index 45b9aadcf64..fa9d2fc211e 100644 --- a/include/cxx/ctime +++ b/include/cxx/ctime @@ -46,6 +46,7 @@ namespace std using ::clock_settime; using ::clock_gettime; using ::mktime; + using ::localtime; using ::gmtime_r; using ::gmtime; using ::strftime;