From c392eba620bdcdd616e208bce0669d6bc64048fb Mon Sep 17 00:00:00 2001 From: momo5502 Date: Mon, 4 Jan 2016 10:58:58 +0100 Subject: [PATCH] Better version.hpp including. --- src/Components/Modules/Console.cpp | 1 + src/Components/Modules/Party.cpp | 1 + src/Components/Modules/QuickPatch.cpp | 1 + src/Components/Modules/ServerList.cpp | 1 + src/STDInclude.hpp | 10 ---------- src/Utils/Versioning.hpp | 9 +++++++++ 6 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 src/Utils/Versioning.hpp diff --git a/src/Components/Modules/Console.cpp b/src/Components/Modules/Console.cpp index cb15c5a1..31aa8227 100644 --- a/src/Components/Modules/Console.cpp +++ b/src/Components/Modules/Console.cpp @@ -1,4 +1,5 @@ #include "..\..\STDInclude.hpp" +#include "..\..\Utils\Versioning.hpp" namespace Components { diff --git a/src/Components/Modules/Party.cpp b/src/Components/Modules/Party.cpp index 147da77d..5837dce4 100644 --- a/src/Components/Modules/Party.cpp +++ b/src/Components/Modules/Party.cpp @@ -1,4 +1,5 @@ #include "..\..\STDInclude.hpp" +#include "..\..\Utils\Versioning.hpp" namespace Components { diff --git a/src/Components/Modules/QuickPatch.cpp b/src/Components/Modules/QuickPatch.cpp index cedd8b4b..4423d08f 100644 --- a/src/Components/Modules/QuickPatch.cpp +++ b/src/Components/Modules/QuickPatch.cpp @@ -1,4 +1,5 @@ #include "..\..\STDInclude.hpp" +#include "..\..\Utils\Versioning.hpp" namespace Components { diff --git a/src/Components/Modules/ServerList.cpp b/src/Components/Modules/ServerList.cpp index c7418cd2..00b6d88b 100644 --- a/src/Components/Modules/ServerList.cpp +++ b/src/Components/Modules/ServerList.cpp @@ -1,4 +1,5 @@ #include "..\..\STDInclude.hpp" +#include "..\..\Utils\Versioning.hpp" namespace Components { diff --git a/src/STDInclude.hpp b/src/STDInclude.hpp index bbdea4e2..be5868d9 100644 --- a/src/STDInclude.hpp +++ b/src/STDInclude.hpp @@ -25,8 +25,6 @@ #include #include -#include - #include "Utils\Utils.hpp" #include "Utils\WebIO.hpp" #include "Utils\Hooking.hpp" @@ -42,11 +40,3 @@ #pragma comment(lib, "Winmm.lib") #pragma comment(lib, "Crypt32.lib") #pragma comment(lib, "Ws2_32.lib") - -// Revision number -#define STRINGIZE_(x) #x -#define STRINGIZE(x) STRINGIZE_(x) - -#define REVISION_STR STRINGIZE(REVISION) -#define VERSION 4,2,REVISION -#define VERSION_STR "4.2." REVISION_STR diff --git a/src/Utils/Versioning.hpp b/src/Utils/Versioning.hpp new file mode 100644 index 00000000..d478e45a --- /dev/null +++ b/src/Utils/Versioning.hpp @@ -0,0 +1,9 @@ +#include + +// Revision number +#define STRINGIZE_(x) #x +#define STRINGIZE(x) STRINGIZE_(x) + +#define REVISION_STR STRINGIZE(REVISION) +#define VERSION 4,2,REVISION +#define VERSION_STR "4.2." REVISION_STR