mirror of
https://github.com/glest/glest-source.git
synced 2025-08-11 19:04:00 +02:00
- attempt to fix in debian experiemntal gcc
This commit is contained in:
Submodule data/glest_game updated: c0c270c5e0...a1e6be2182
@@ -124,7 +124,9 @@ tm threadsafe_localtime(const time_t &time) {
|
|||||||
// extracting std::time_t from std:chrono for "now"
|
// extracting std::time_t from std:chrono for "now"
|
||||||
time_t systemtime_now() {
|
time_t systemtime_now() {
|
||||||
#if __cplusplus > 199711L
|
#if __cplusplus > 199711L
|
||||||
system_time_point system_now = std::chrono::system_clock::now();
|
// typedef std::chrono::time_point<std::chrono::system_clock> system_time_point;
|
||||||
|
typedef std::chrono::time_point<std::chrono::system_clock> system_time_point_x;
|
||||||
|
system_time_point_x system_now = std::chrono::system_clock::now();
|
||||||
return std::chrono::system_clock::to_time_t(system_now);
|
return std::chrono::system_clock::to_time_t(system_now);
|
||||||
#else
|
#else
|
||||||
return time(NULL);
|
return time(NULL);
|
||||||
|
Reference in New Issue
Block a user