mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #7762
8ae6c85
trezor: add #if for ByteSizeLong (selsta)
This commit is contained in:
commit
1e8cbc995f
1 changed files with 4 additions and 0 deletions
|
@ -157,7 +157,11 @@ namespace trezor{
|
||||||
#define PROTO_HEADER_SIZE 6
|
#define PROTO_HEADER_SIZE 6
|
||||||
|
|
||||||
static size_t message_size(const google::protobuf::Message &req){
|
static size_t message_size(const google::protobuf::Message &req){
|
||||||
|
#if GOOGLE_PROTOBUF_VERSION < 3006001
|
||||||
|
return size_t(req.ByteSize());
|
||||||
|
#else
|
||||||
return req.ByteSizeLong();
|
return req.ByteSizeLong();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static size_t serialize_message_buffer_size(size_t msg_size) {
|
static size_t serialize_message_buffer_size(size_t msg_size) {
|
||||||
|
|
Loading…
Reference in a new issue