fix build on gcc povery edition
This commit is contained in:
parent
2e39ea9b73
commit
4ffd5c8c70
@ -9,6 +9,7 @@
|
|||||||
#include "td/utils/common.h"
|
#include "td/utils/common.h"
|
||||||
#include "td/utils/StringBuilder.h"
|
#include "td/utils/StringBuilder.h"
|
||||||
|
|
||||||
|
#include <ctime>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
@ -17,7 +18,7 @@ namespace td {
|
|||||||
class FileId {
|
class FileId {
|
||||||
int32 id = 0;
|
int32 id = 0;
|
||||||
int32 remote_id = 0;
|
int32 remote_id = 0;
|
||||||
int64 time = INT64_MAX;
|
int64 time_ = INT64_MAX;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FileId() = default;
|
FileId() = default;
|
||||||
@ -40,13 +41,13 @@ class FileId {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32 get() {
|
int32 get() {
|
||||||
time = std::time(nullptr);
|
time_ = std::time(nullptr);
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
int64 get_time() {
|
int64 get_time() {
|
||||||
auto res = time;
|
auto res = time_;
|
||||||
time = INT64_MAX;
|
time_ = INT64_MAX;
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user