mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-08 21:17:49 +00:00
Windows build fixes
This commit is contained in:
@@ -307,10 +307,17 @@ std::string AudioGroupDatabase::exportCHeader(std::string_view projectName, std:
|
||||
ret += "\n"
|
||||
" * Date: "sv;
|
||||
time_t curTime = time(nullptr);
|
||||
#ifndef _WIN32
|
||||
struct tm curTm;
|
||||
localtime_r(&curTime, &curTm);
|
||||
char curTmStr[26];
|
||||
asctime_r(&curTm, curTmStr);
|
||||
#else
|
||||
struct tm curTm;
|
||||
localtime_s(&curTm, &curTime);
|
||||
char curTmStr[26];
|
||||
asctime_s(curTmStr, &curTm);
|
||||
#endif
|
||||
ret += curTmStr;
|
||||
ret += "\n"
|
||||
" */\n\n\n"sv;
|
||||
|
||||
Reference in New Issue
Block a user