Better version.hpp including.

This commit is contained in:
momo5502 2016-01-04 10:58:58 +01:00
parent ba9bcf0f67
commit c392eba620
6 changed files with 13 additions and 10 deletions

View File

@ -1,4 +1,5 @@
#include "..\..\STDInclude.hpp" #include "..\..\STDInclude.hpp"
#include "..\..\Utils\Versioning.hpp"
namespace Components namespace Components
{ {

View File

@ -1,4 +1,5 @@
#include "..\..\STDInclude.hpp" #include "..\..\STDInclude.hpp"
#include "..\..\Utils\Versioning.hpp"
namespace Components namespace Components
{ {

View File

@ -1,4 +1,5 @@
#include "..\..\STDInclude.hpp" #include "..\..\STDInclude.hpp"
#include "..\..\Utils\Versioning.hpp"
namespace Components namespace Components
{ {

View File

@ -1,4 +1,5 @@
#include "..\..\STDInclude.hpp" #include "..\..\STDInclude.hpp"
#include "..\..\Utils\Versioning.hpp"
namespace Components namespace Components
{ {

View File

@ -25,8 +25,6 @@
#include <thread> #include <thread>
#include <chrono> #include <chrono>
#include <version.hpp>
#include "Utils\Utils.hpp" #include "Utils\Utils.hpp"
#include "Utils\WebIO.hpp" #include "Utils\WebIO.hpp"
#include "Utils\Hooking.hpp" #include "Utils\Hooking.hpp"
@ -42,11 +40,3 @@
#pragma comment(lib, "Winmm.lib") #pragma comment(lib, "Winmm.lib")
#pragma comment(lib, "Crypt32.lib") #pragma comment(lib, "Crypt32.lib")
#pragma comment(lib, "Ws2_32.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

9
src/Utils/Versioning.hpp Normal file
View File

@ -0,0 +1,9 @@
#include <version.hpp>
// 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