mirror of
https://github.com/halpz/re3.git
synced 2025-06-28 17:16:19 +00:00
Frontend: Stats, Map, Audio inputs, Radio selector
This commit is contained in:
@ -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(×tamp);
|
||||
tm *localTm = localtime(×tamp);
|
||||
strftime(buf, 10, "%m/%d/%y", localTm);
|
||||
return buf;
|
||||
}
|
||||
|
||||
char *_strdate(char *buf) {
|
||||
return strdate(buf);
|
||||
}
|
||||
#endif
|
||||
|
@ -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>.
|
||||
|
Reference in New Issue
Block a user