mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
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:
parent
0a9cb6538c
commit
794f0c2ce9
1 changed files with 1 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ namespace std
|
|||
using ::clock_settime;
|
||||
using ::clock_gettime;
|
||||
using ::mktime;
|
||||
using ::localtime;
|
||||
using ::gmtime_r;
|
||||
using ::gmtime;
|
||||
using ::strftime;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue