enh: physical plan serialization supports cross-platform

This commit is contained in:
Xiaoyu Wang 2022-09-19 16:50:00 +08:00
parent 74f75893ea
commit d1d55f4e78
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,8 @@
#include "plannodes.h"
#include "tdatablock.h"
#ifndef htonll
#define htonll(x) \
(((int64_t)x & 0x00000000000000ff) << 7 * 8) | (((int64_t)x & 0x000000000000ff00) << 5 * 8) | \
(((int64_t)x & 0x0000000000ff0000) << 3 * 8) | (((int64_t)x & 0x00000000ff000000) << 1 * 8) | \
@ -25,6 +27,8 @@
#define ntohll(x) htonll(x)
#endif
#define NODES_MSG_DEFAULT_LEN 1024
#define TLV_TYPE_ARRAY_ELEM 0