Skip to content

Commit

Permalink
Default PROTOCOL_VERSION to 104
Browse files Browse the repository at this point in the history
  • Loading branch information
yungcomputerchair committed Feb 3, 2024
1 parent 44560a4 commit 8d04f31
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/core/CNStructs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d04f31

Please sign in to comment.