From e9efa0c9897b0a6d54117e5865df5c1af434f867 Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Sat, 20 Jul 2024 15:55:36 +0200 Subject: [PATCH] downgrade lambda syntax for better compat with old compilers --- ResourceFiles/ResourceFile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ResourceFiles/ResourceFile.cc b/ResourceFiles/ResourceFile.cc index 63db5f9c13..0b8e2b7b0a 100644 --- a/ResourceFiles/ResourceFile.cc +++ b/ResourceFiles/ResourceFile.cc @@ -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));