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 <nicolasWDC@users.noreply.github.com>
This commit is contained in:
nicolasWDC 2026-06-08 20:07:31 +00:00 committed by Alan C. Assis
parent 0a9cb6538c
commit 794f0c2ce9

View file

@ -46,6 +46,7 @@ namespace std
using ::clock_settime;
using ::clock_gettime;
using ::mktime;
using ::localtime;
using ::gmtime_r;
using ::gmtime;
using ::strftime;