Removed version.h.

This commit is contained in:
Relintai 2021-06-20 15:16:09 +02:00
parent d5488e8cd1
commit 70fb51ca3e
3 changed files with 2 additions and 9 deletions

View File

@ -69,7 +69,6 @@ def configure(env):
env.Append(CPPDEFINES=["OPENSSL_FOUND"])
env.Prepend(CPPPATH=["#modules/drogon/drogon/lib/inc"])
env.Prepend(CPPPATH=["#modules/drogon/drogon/config"])
env.Prepend(CPPPATH=["#modules/drogon"])
env.Prepend(CPPPATH=["#modules/drogon/trantor"])

View File

@ -1,5 +0,0 @@
#define MAJOR 1
#define MINOR 6
#define PATCH 0
#define DROGON_VERSION "1.6.0"
#define DROGON_VERSION_SHA1 ""

View File

@ -33,7 +33,6 @@
#include <drogon/Session.h>
#include <drogon/utils/Utilities.h>
#include <drogon/version.h>
#include <json/json.h>
#include <trantor/utils/AsyncFileLogger.h>
#include <algorithm>
@ -95,11 +94,11 @@ drogon::InitBeforeMainFunction drogon::HttpAppFrameworkImpl::initFirst_([]() {
namespace drogon {
std::string getVersion() {
return DROGON_VERSION;
return "1";
}
std::string getGitCommit() {
return DROGON_VERSION_SHA1;
return "DROGON_VERSION_SHA1";
}
HttpResponsePtr defaultErrorHandler(HttpStatusCode code) {