diff options
-rw-r--r-- | src/rpc/core_rpc_server_commands_defs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server_commands_defs.h b/src/rpc/core_rpc_server_commands_defs.h index c1dc9ed6c..2530bc06d 100644 --- a/src/rpc/core_rpc_server_commands_defs.h +++ b/src/rpc/core_rpc_server_commands_defs.h @@ -50,7 +50,8 @@ namespace cryptonote // Don't go over 32767 for any of these #define CORE_RPC_VERSION_MAJOR 1 #define CORE_RPC_VERSION_MINOR 5 -#define CORE_RPC_VERSION (((CORE_RPC_VERSION_MAJOR)<<16)|(CORE_RPC_VERSION_MINOR)) +#define MAKE_CORE_RPC_VERSION(major,minor) (((major)<<16)|(minor)) +#define CORE_RPC_VERSION MAKE_CORE_RPC_VERSION(CORE_RPC_VERSION_MAJOR, CORE_RPC_VERSION_MINOR) struct COMMAND_RPC_GET_HEIGHT { |