From 8d04f31c61b1ecbcf6b54d9d1025615ace79ae72 Mon Sep 17 00:00:00 2001 From: Gent Semaj Date: Fri, 2 Feb 2024 21:58:37 -0500 Subject: [PATCH] Default PROTOCOL_VERSION to 104 --- src/core/CNStructs.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/CNStructs.hpp b/src/core/CNStructs.hpp index 290f8ca..db59f2f 100644 --- a/src/core/CNStructs.hpp +++ b/src/core/CNStructs.hpp @@ -50,13 +50,15 @@ time_t getTime(); time_t getTimestamp(); void terminate(int); -// The PROTOCOL_VERSION definition is defined by the build system. +// The PROTOCOL_VERSION definition can be defined by the build system. #if !defined(PROTOCOL_VERSION) + #define PROTOCOL_VERSION 104 +#endif + +#if PROTOCOL_VERSION == 104 #include "structs/0104.hpp" #elif PROTOCOL_VERSION == 728 #include "structs/0728.hpp" -#elif PROTOCOL_VERSION == 104 - #include "structs/0104.hpp" #elif PROTOCOL_VERSION == 1013 #include "structs/1013.hpp" #else