修改常量命名

This commit is contained in:
ziyue
2021-10-16 16:58:03 +08:00
parent 8769ea83a9
commit f5f58196b5
12 changed files with 19 additions and 19 deletions

View File

@@ -138,7 +138,7 @@ onceToken token([](){
"<body bgcolor=\"white\">"
"<center><h1>您访问的资源不存在!</h1></center>"
"<hr><center>"
<< SERVER_NAME
<< kServerName
<< "</center>"
"</body>"
"</html>"

View File

@@ -37,9 +37,9 @@ void printArgs(std::ostream &out) {}
//请遵循MIT协议勿修改服务器声明
#if !defined(ENABLE_VERSION)
const char SERVER_NAME[] = "ZLMediaKit-6.0(build in " __DATE__ " " __TIME__ ")";
const char kServerName[] = "ZLMediaKit-6.0(build in " __DATE__ " " __TIME__ ")";
#else
const char SERVER_NAME[] = "ZLMediaKit(git hash:" COMMIT_HASH ",branch:" BRANCH_NAME ",build time:" __DATE__ " " __TIME__ ")";
const char kServerName[] = "ZLMediaKit(git hash:" COMMIT_HASH ",branch:" BRANCH_NAME ",build time:" __DATE__ " " __TIME__ ")";
#endif
}//namespace mediakit

View File

@@ -74,7 +74,7 @@ extern void Assert_Throw(int failed, const char *exp, const char *func, const ch
namespace mediakit {
extern const char SERVER_NAME[];
extern const char kServerName[];
void printArgs(std::ostream &out);