summaryrefslogtreecommitdiff
path: root/src/skel/crossplatform.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2020-11-14 17:46:12 +0300
committererorcun <erorcunerorcun@hotmail.com.tr>2020-11-18 00:33:45 +0300
commitc6f53d25b020fe8d70bd4831156b787eec1633ae (patch)
treea7f084fa9ca918fa9569c14fc8b771ea455e61ff /src/skel/crossplatform.cpp
parent26c6908d2552f6032c7440f25e1ad608959ebf0b (diff)
Frontend: Stats, Map, Audio inputs, Radio selector
Diffstat (limited to 'src/skel/crossplatform.cpp')
-rw-r--r--src/skel/crossplatform.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/skel/crossplatform.cpp b/src/skel/crossplatform.cpp
index 4b7d3d9a..37c94cb4 100644
--- a/src/skel/crossplatform.cpp
+++ b/src/skel/crossplatform.cpp
@@ -256,3 +256,17 @@ char* casepath(char const* path, bool checkPathFirst)
return out;
}
#endif
+
+#if !defined(_MSC_VER) && !defined(__CWCC__)
+char *strdate(char *buf) {
+ time_t timestamp;
+ time(&timestamp);
+ tm *localTm = localtime(&timestamp);
+ strftime(buf, 10, "%m/%d/%y", localTm);
+ return buf;
+}
+
+char *_strdate(char *buf) {
+ return strdate(buf);
+}
+#endif