[flang-commits] [flang] FDATE extension implementation: get date and time in ctime format (PR #71222)
David Truby via flang-commits
flang-commits at lists.llvm.org
Thu Nov 9 08:55:14 PST 2023
================
@@ -14,6 +14,7 @@
#include "flang/Runtime/descriptor.h"
#include <cstdlib>
#include <limits>
+#include <time.h>
----------------
DavidTruby wrote:
We should use the C++ headers for this (i.e. `<ctime>` in this case)
This will mean prefixing all the C functions with `std::`, e.g. `std::strchr`, `std::time_t`, `std::time` etc
https://github.com/llvm/llvm-project/pull/71222
More information about the flang-commits
mailing list