mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-26 16:29:28 +00:00
downgrade lambda syntax for better compat with old compilers
This commit is contained in:
parent
2abae70456
commit
e9efa0c989
@ -80,7 +80,7 @@ static void writeMacBinary(std::ostream& out, std::string filename,
|
||||
// takes the time from the $SOURCE_DATE_EPOCH environment variable instead of the system clock.
|
||||
// When building under `nix`, this is automatically set to the modification date of the newest source
|
||||
// file.
|
||||
auto timestamp = std::invoke([&] -> std::chrono::system_clock::time_point {
|
||||
auto timestamp = std::invoke([&]()-> std::chrono::system_clock::time_point {
|
||||
const char *sourceDateEpochEnvVar = getenv("SOURCE_DATE_EPOCH");
|
||||
if (sourceDateEpochEnvVar && *sourceDateEpochEnvVar)
|
||||
return std::chrono::system_clock::from_time_t((time_t)std::atoll(sourceDateEpochEnvVar));
|
||||
|
Loading…
Reference in New Issue
Block a user