Frontend: Stats, Map, Audio inputs, Radio selector

This commit is contained in:
erorcun
2020-11-14 17:46:12 +03:00
parent 26c6908d25
commit c6f53d25b0
5 changed files with 665 additions and 229 deletions

View File

@ -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

View File

@ -12,6 +12,10 @@ enum eWinVersion
OS_WINXP,
};
#if !defined(_MSC_VER) && !defined(__CWCC__)
char *_strdate(char *buf);
#endif
#ifdef _WIN32
// As long as WITHWINDOWS isn't defined / <Windows.h> isn't included, we only need type definitions so let's include <IntSafe.h>.